package com.wicket.okrapp.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;

import com.wicket.okrapp.base.service.MOmsCycleService;
import com.wicket.okrapp.base.service.MOmsCycleTypeInstanceRelationshipService;
import com.wicket.okrapp.base.service.MOmsCycleTypeInstanceService;
import com.wicket.okrapp.base.service.MOmsCycleTypeService;
import com.wicket.okrapp.base.service.dto.common.CycleTypeDto;
import com.wicket.okrapp.base.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.common.*;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.util.CommonFunctionHelper;
import com.wicket.okrapp.common.util.RedisUtil;
import com.wicket.okrapp.dal.po.mbg.OmsCycle;
import com.wicket.okrapp.dal.po.mbg.OmsCycleType;
import com.wicket.okrapp.dal.po.mbg.OmsCycleTypeInstance;
import com.wicket.okrapp.dal.po.mbg.OmsCycleTypeInstanceRelationship;
import com.wicket.okrcomponent.integration.dto.*;
import com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerListComReqDto;
import com.wicket.okrframework.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import com.wicket.okrapp.common.exception.Assert;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrapp.base.service.MOmsExecuteCycleStageService;
import com.wicket.okrapp.dal.po.mbg.OmsExecuteCycleStage;
import com.wicket.okrapp.biz.service.nb.NbCycleType;
import com.wicket.okrapp.base.service.MOmsEvaluationObjectTargetCycleService;
import com.wicket.okrcomponent.integration.FwCompStatisticalDataClient;
import com.wicket.okrapp.biz.service.DivineDataService;

import com.wicket.okrcomponent.integration.FwCompConfSchemeClient;
import com.wicket.okrapp.biz.service.TargetCycleService;
import com.wicket.okrcomponent.integration.FwCompTemplateEngineClient;
import com.wicket.okrapp.common.exception.BizException;
import com.wicket.okrframework.integration.FwBaseInductionRecordClient;
import com.wicket.okrframework.integration.FwBaseTypeCodeClient;
import com.wicket.okrcomponent.integration.FwCompInterfaceModeClient;
import com.wicket.okrapp.base.service.MOmsReportHolidayHandlingStrategyService;
import com.wicket.okrapp.dal.po.mbg.OmsReportHolidayHandlingStrategy;
import com.wicket.okrcalc.integration.dto.CalculateAdditionOfTwoNumServiceComRespDto;
import com.wicket.okrcalc.integration.dto.CalculateAdditionOfTwoNumServiceComReqDto;
import com.wicket.okrcalc.integration.FwCalcCalculationRulesClient;
import com.wicket.okrcomponent.integration.FwCompCycleTypeClient;
import com.wicket.okrcalc.integration.FwCalcInterfaceModeClient;
import com.wicket.okrapp.base.service.MOmsTargetObjectiveService;
import com.wicket.okrapp.biz.service.ExecuteCycleService;
import com.wicket.okrapp.base.service.MOmsTaskService;


/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class CycleTypeServiceImpl
        implements com.wicket.okrapp.biz.service.CycleTypeService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    private MOmsCycleService mOmsCycleService;
    @Resource
    private MOmsCycleTypeInstanceRelationshipService mOmsCycleTypeInstanceRelationshipService;
    @Resource
    private MOmsCycleTypeService mOmsCycleTypeService;
    @Resource
    private MOmsCycleTypeInstanceService mOmsCycleTypeInstanceService;
//@Resource
 //private MCustomFields2Service mCustomFields2Service;
@Resource
  private MOmsExecuteCycleStageService mOmsExecuteCycleStageService;
@Resource
  private NbCycleType nbCycleType;
@Resource
  private MOmsEvaluationObjectTargetCycleService mOmsEvaluationObjectTargetCycleService;
//@Resource
 //private MSpecMethordTableService mSpecMethordTableService;
@Resource
  private FwCompStatisticalDataClient fwCompStatisticalDataClient;
@Resource
  private DivineDataService divineDataService;
//@Resource
 //private MCustomFields3Service mCustomFields3Service;
@Resource
  private FwCompConfSchemeClient fwCompConfSchemeClient;
@Resource
  private TargetCycleService targetCycleService;
@Resource
  private FwCompTemplateEngineClient fwCompTemplateEngineClient;
@Resource
  private FwBaseInductionRecordClient fwBaseInductionRecordClient;
@Resource
  private FwBaseTypeCodeClient fwBaseTypeCodeClient;
@Resource
  private FwCompInterfaceModeClient fwCompInterfaceModeClient;
@Resource
 private MOmsReportHolidayHandlingStrategyService mOmsReportHolidayHandlingStrategyService;
@Resource
  private FwCalcCalculationRulesClient fwCalcCalculationRulesClient;
//@Resource
 //private undefinedService undefinedService;
@Resource
  private FwCompCycleTypeClient fwCompCycleTypeClient;
@Resource
  private FwCalcInterfaceModeClient fwCalcInterfaceModeClient;
@Resource
  private MOmsTargetObjectiveService mOmsTargetObjectiveService;
@Resource
  private ExecuteCycleService executeCycleService;
@Resource
  private MOmsTaskService mOmsTaskService;

    /**
   * D3-4查询周期详情[2009]
   */
  @Trace(operationName = "D3-4查询周期详情")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCycleDetailRespDto queryCycleDetail(QueryCycleDetailReqDto reqDto){
    
      
      OmsCycle omsCycle_1 = null;
//步骤0: 3-4-04查询周期详情 - queryCycleDetail
     OmsCycle omsCycle = null;
    QueryCycleDetailReq queryCycleDetailReq=new QueryCycleDetailReq();
  if(reqDto!=null){
      queryCycleDetailReq.setCycleId(reqDto.getCycleId());//sourceId:59268_1
queryCycleDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//sourceId:59269_1
queryCycleDetailReq.setIsArchive(reqDto.getIsArchive());//sourceId:59270_1
    }
  
    /*3-4-04查询周期详情[2004]   */
      omsCycle = mOmsCycleService.queryCycleDetail(queryCycleDetailReq);
      
      omsCycle_1 = omsCycle;
    
QueryCycleDetailRespDto retData = new QueryCycleDetailRespDto();
  if(omsCycle_1!=null){
      retData.setCycleId(omsCycle_1.getCycleId());//sourceId:59292_1
retData.setCycleStandardName(omsCycle_1.getCycleStandardName());//sourceId:59293_1
retData.setCycleStartTime(omsCycle_1.getCycleStartTime());//sourceId:59294_1
retData.setCycleEndTime(omsCycle_1.getCycleEndTime());//sourceId:59295_1
retData.setCycleTypeCode(omsCycle_1.getCycleTypeCode());//sourceId:59296_1
retData.setCycleTypeInstanceCode(omsCycle_1.getCycleTypeInstanceCode());//sourceId:59297_1
retData.setCycleSystemCode(omsCycle_1.getCycleSystemCode());//sourceId:59298_1
retData.setCycleTypeStandard(omsCycle_1.getCycleTypeStandard());//sourceId:59299_1
retData.setPlatformData(omsCycle_1.getPlatformData());//sourceId:59300_1
retData.setSubjectLifeCycle(omsCycle_1.getSubjectLifeCycle());//sourceId:59301_1
retData.setOperationInductionId(omsCycle_1.getOperationInductionId());//sourceId:59302_1
retData.setOperateTime(omsCycle_1.getOperateTime());//sourceId:59303_1
    }
  

  
  
return retData;
  }

    /**
   * D3-4查询工作周期类型关系列表[1877]
   * gen by moon at 11/27/2022, 9:20:17 PM
   */
  @Trace(operationName = "D3-4查询工作周期类型关系列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCycleTypeInstanceRelationshipListRespDto queryCycleTypeInstanceRelationshipList(QueryCycleTypeInstanceRelationshipListReqDto reqDto){
    
      
      List<OmsCycleTypeInstanceRelationship> listOmsCycleTypeInstanceRelationship_1 =new ArrayList<>();
List<OmsCycleType> listOmsCycleType_1 =new ArrayList<>();
List<OmsCycleType> listOmsCycleType_3 =new ArrayList<>();
//步骤0: 3-4-02查工作周期类型关系列表 - queryCycleTypeInstanceRelationshipList
     List<OmsCycleTypeInstanceRelationship> listOmsCycleTypeInstanceRelationship =new ArrayList<>();
    QueryCycleTypeInstanceRelationshipListReq queryCycleTypeInstanceRelationshipListReq=new QueryCycleTypeInstanceRelationshipListReq();
  if(reqDto!=null){
      queryCycleTypeInstanceRelationshipListReq.setParentCycleTypeId(reqDto.getParentCycleTypeId());//SimpleFieldAssign//sourceId:449630_1
      queryCycleTypeInstanceRelationshipListReq.setCycleTypeId(reqDto.getCycleTypeId());//SimpleFieldAssign//sourceId:63246_1
queryCycleTypeInstanceRelationshipListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:57289_1
queryCycleTypeInstanceRelationshipListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:57288_1
    }
  
    /*3-4-02查工作周期类型关系列表[1873]   */

      listOmsCycleTypeInstanceRelationship = mOmsCycleTypeInstanceRelationshipService.queryCycleTypeInstanceRelationshipList(queryCycleTypeInstanceRelationshipListReq);
      
      
      listOmsCycleTypeInstanceRelationship_1 = listOmsCycleTypeInstanceRelationship;
    
//步骤1: 3-4-01批量查周期类型列表 - batchQueryCycleTypeList
     List<OmsCycleType> listOmsCycleType =new ArrayList<>();
    if(listOmsCycleTypeInstanceRelationship !=null&& !CollectionUtil.isEmpty(listOmsCycleTypeInstanceRelationship)&& listOmsCycleTypeInstanceRelationship.size()>0 ){
          BatchQueryCycleTypeListReq batchQueryCycleTypeListReq=new BatchQueryCycleTypeListReq();
  batchQueryCycleTypeListReq.setCycleTypeList(listOmsCycleTypeInstanceRelationship.stream().map(item->item.getParentCycleTypeId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:66771_1
  batchQueryCycleTypeListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:66772_1
  
    /*3-4-01批量查父周期类型名称[2274]   */
    Assert.isNull(batchQueryCycleTypeListReq.getSubjectLifeCycle(),"D3-4查询工作周期类型关系列表-3-4-01批量查父周期类型名称-主体生命周期不能为空",false);
      listOmsCycleType = mOmsCycleTypeService.batchQueryCycleTypeList(batchQueryCycleTypeListReq);
      
      
      listOmsCycleType_1 = listOmsCycleType;
           }
    
//步骤2: 3-4-01批量查周期类型列表 - batchQueryCycleTypeList
     List<OmsCycleType> listOmsCycleType_2 =new ArrayList<>();
    if(listOmsCycleTypeInstanceRelationship !=null&& !CollectionUtil.isEmpty(listOmsCycleTypeInstanceRelationship)&& listOmsCycleTypeInstanceRelationship.size()>0 ){
          BatchQueryCycleTypeListReq batchQueryCycleTypeListReq_1=new BatchQueryCycleTypeListReq();
  batchQueryCycleTypeListReq_1.setCycleTypeList(listOmsCycleTypeInstanceRelationship.stream().map(item->item.getCycleTypeId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:449620_1
  batchQueryCycleTypeListReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:449621_1

    /*3-4-01批量查子周期类型名称[2274]   */
    Assert.isNull(batchQueryCycleTypeListReq_1.getSubjectLifeCycle(),"D3-4查询工作周期类型关系列表-3-4-01批量查子周期类型名称-主体生命周期不能为空",false);
      listOmsCycleType_2 = mOmsCycleTypeService.batchQueryCycleTypeList(batchQueryCycleTypeListReq_1);


      listOmsCycleType_3 = listOmsCycleType_2;
           }

QueryCycleTypeInstanceRelationshipListRespDto retData = new QueryCycleTypeInstanceRelationshipListRespDto();
  //数据集融合  MoreListToOneSource
        if(listOmsCycleTypeInstanceRelationship_1!= null&& !CollectionUtil.isEmpty(listOmsCycleTypeInstanceRelationship_1) && !CollectionUtil.isEmpty(listOmsCycleTypeInstanceRelationship_1) ){
          for (OmsCycleTypeInstanceRelationship omsCycleTypeInstanceRelationship : listOmsCycleTypeInstanceRelationship_1) {
              CycleTypeInstanceRelationshipDto retElm = new CycleTypeInstanceRelationshipDto();
             retElm.setCycleRelationshipId(omsCycleTypeInstanceRelationship.getCycleRelationshipId());//SimpleFieldAssign//sourceId:31425_2
retElm.setSubCycleTypeId(omsCycleTypeInstanceRelationship.getCycleTypeId());//SimpleFieldAssign//sourceId:57196_2
retElm.setSubCycleTypeCode(omsCycleTypeInstanceRelationship.getCycleTypeCode());//SimpleFieldAssign//sourceId:121415_2
retElm.setSubCycleNumber(omsCycleTypeInstanceRelationship.getSubCycleNumber());//SimpleFieldAssign//sourceId:31428_2
retElm.setParentCycleTypeId(omsCycleTypeInstanceRelationship.getParentCycleTypeId());//SimpleFieldAssign//sourceId:121416_2
retElm.setRelationCycleTypeCode(omsCycleTypeInstanceRelationship.getRelationCycleTypeCode());//SimpleFieldAssign//sourceId:31427_2
retElm.setIsInterim(omsCycleTypeInstanceRelationship.getIsInterim());//SimpleFieldAssign//sourceId:31429_2
retElm.setSubjectLifeCycle(omsCycleTypeInstanceRelationship.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:31430_2
retElm.setIsArchive(omsCycleTypeInstanceRelationship.getIsArchive());//SimpleFieldAssign//sourceId:35150_2
              retData.getCycleTypeInstanceRelationshipList().add(retElm);
               if(listOmsCycleType_3!= null&& !CollectionUtil.isEmpty(listOmsCycleType_3)){
          for (OmsCycleType omsCycleType : listOmsCycleType_3) {
                if (omsCycleType.getCycleTypeId().equals(omsCycleTypeInstanceRelationship.getCycleTypeId())) {
                 retElm.setSubCycleTypeStandard(omsCycleType.getCycleTypeStandard());//SimpleFieldAssign//sourceId:121479_2
retElm.setSubCycleTypeName(omsCycleType.getCycleTypeName());//SimpleFieldAssign//sourceId:121418_2
                }
            }
          }

 if(listOmsCycleType_1!= null&& !CollectionUtil.isEmpty(listOmsCycleType_1)){
          for (OmsCycleType omsCycleType : listOmsCycleType_1) {
                if (omsCycleType.getCycleTypeId().equals(omsCycleTypeInstanceRelationship.getParentCycleTypeId())) {
                 retElm.setParentCycleTypeStandard(omsCycleType.getCycleTypeStandard());//SimpleFieldAssign//sourceId:121480_2
retElm.setParentCycleTypeName(omsCycleType.getCycleTypeName());//SimpleFieldAssign//sourceId:121417_2
                }
            }
          }
        
          }
        }//sourceId:57303_1
  

  
  
return retData;
  }

    /**
   * D3-4新增工作周期类型关系[1875]
   * gen by moon at 11/27/2022, 9:20:19 PM
   */
  @Trace(operationName = "D3-4新增工作周期类型关系")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddCycleTypeInstanceRelationshipRespDto addCycleTypeInstanceRelationship(AddCycleTypeInstanceRelationshipReqDto reqDto){
    
      
      String string_1 =null;
//步骤0: M3获取接收外部字段(特殊方法） - obtainReceiveOutField
     //ModelCode: receptionService
        ObtainReceiveOutFieldRespDto receptionServiceRes = null;
    ObtainReceiveOutFieldReqDto receptionServiceReq=new ObtainReceiveOutFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setCycleTypeId(reqDto.getCycleTypeId());//SimpleFieldAssign//sourceId:449835_1
receptionServiceReq.setParentCycleTypeId(reqDto.getParentCycleTypeId());//SimpleFieldAssign//sourceId:449836_1
    }

    /*M3获取接收外部字段(特殊方法）[4608]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCycleTypeId(),"D3-4新增工作周期类型关系-M3获取接收外部字段(特殊方法）-冗余周期类型ID不能为空",false);
Assert.isNull(receptionServiceReq.getParentCycleTypeId(),"D3-4新增工作周期类型关系-M3获取接收外部字段(特殊方法）-关联父周期类型ID不能为空",false);
      receptionServiceRes = nbCycleType.obtainReceiveOutField(receptionServiceReq);




//步骤1: 3-4-01查周期类型详情 - queryCycleTypeDetail
     OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:449839_1
if(reqDto!=null){
      queryCycleTypeDetailReq.setCycleTypeId(reqDto.getParentCycleTypeId());//SimpleFieldAssign//sourceId:449638_1
    }

    /*3-4-01查父周期类型[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeId(),"D3-4新增工作周期类型关系-3-4-01查父周期类型-周期类型ID不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3-4新增工作周期类型关系-3-4-01查父周期类型-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq);
      Assert.isTrue(omsCycleType== null||  omsCycleType.getCycleTypeId() ==null,"找不到数据，系统异常",false);



//步骤2: 3-4-01查周期类型详情 - queryCycleTypeDetail
     OmsCycleType omsCycleType_2 = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq_1=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:449858_1
if(reqDto!=null){
      queryCycleTypeDetailReq_1.setCycleTypeId(reqDto.getCycleTypeId());//SimpleFieldAssign//sourceId:449842_1
    }

    /*3-4-01查子周期类型[1881]   */
    Assert.isNull(queryCycleTypeDetailReq_1.getCycleTypeId(),"D3-4新增工作周期类型关系-3-4-01查子周期类型-周期类型ID不能为空",false);
Assert.isNull(queryCycleTypeDetailReq_1.getSubjectLifeCycle(),"D3-4新增工作周期类型关系-3-4-01查子周期类型-主体生命周期不能为空",false);
      omsCycleType_2 = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq_1);
      Assert.isTrue(omsCycleType_2== null||  omsCycleType_2.getCycleTypeId() ==null,"找不到数据，系统异常",false);



//步骤3: 3-4-03新增工作周期类型关系 - addCycleTypeInstanceRelationship
     String string = null;
    if(omsCycleType_2 !=null){
          OmsCycleTypeInstanceRelationship omsCycleTypeInstanceRelationship=new OmsCycleTypeInstanceRelationship();
  if(omsCycleType_2!=null){
      omsCycleTypeInstanceRelationship.setCycleTypeId(omsCycleType_2.getCycleTypeId());//SimpleFieldAssign//sourceId:63255_1
omsCycleTypeInstanceRelationship.setCycleTypeCode(omsCycleType_2.getCycleTypeCode());//SimpleFieldAssign//sourceId:63256_1
    }
if(omsCycleType!=null){
      omsCycleTypeInstanceRelationship.setParentCycleTypeId(omsCycleType.getCycleTypeId());//SimpleFieldAssign//sourceId:449637_1
omsCycleTypeInstanceRelationship.setRelationCycleTypeCode(omsCycleType.getCycleTypeCode());//SimpleFieldAssign//sourceId:63262_1
    }
  if(reqDto!=null){
omsCycleTypeInstanceRelationship.setSubCycleNumber(reqDto.getSubCycleNumber());//SimpleFieldAssign//sourceId:63263_1
omsCycleTypeInstanceRelationship.setIsInterim(reqDto.getIsInterim());//SimpleFieldAssign//sourceId:63264_1
omsCycleTypeInstanceRelationship.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:57168_1
    }
  
    /*3-4-03新增工作周期类型关系[1871]   */
    Assert.isNull(omsCycleTypeInstanceRelationship.getCycleTypeId(),"D3-4新增工作周期类型关系-3-4-03新增工作周期类型关系-冗余周期类型ID不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship.getCycleTypeCode(),"D3-4新增工作周期类型关系-3-4-03新增工作周期类型关系-子周期类型标识不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship.getParentCycleTypeId(),"D3-4新增工作周期类型关系-3-4-03新增工作周期类型关系-关联父周期类型ID不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship.getRelationCycleTypeCode(),"D3-4新增工作周期类型关系-3-4-03新增工作周期类型关系-关联父工作周期类型标识不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship.getSubCycleNumber(),"D3-4新增工作周期类型关系-3-4-03新增工作周期类型关系-子工作周期数量不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship.getIsInterim(),"D3-4新增工作周期类型关系-3-4-03新增工作周期类型关系-是否中期不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship.getSubjectLifeCycle(),"D3-4新增工作周期类型关系-3-4-03新增工作周期类型关系-主体生命周期不能为空",false);
      string = mOmsCycleTypeInstanceRelationshipService.addCycleTypeInstanceRelationship(omsCycleTypeInstanceRelationship);
      

      string_1 = string;
           }

AddCycleTypeInstanceRelationshipRespDto retData = new AddCycleTypeInstanceRelationshipRespDto();
  if(string_1!=null){
      retData.setCycleRelationshipId(string_1);//SimpleFieldAssign//sourceId:57175_1
    }
  

  
  
return retData;
  }

    /**
   * D3-4批量修改周期类型排序[2169]
   * gen by moon at 8/10/2022, 3:28:17 AM
   */
  @Trace(operationName = "D3-4批量修改周期类型排序")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public BatchUpdateCycleTypeSortRespDto batchUpdateCycleTypeSort(BatchUpdateCycleTypeSortReqDto reqDto){
    
      
      //步骤0: 3-4-01批量改周期类型 - batchUpdateCycleType
     boolean bOOLEAN ;
    List<OmsCycleType> listOmsCycleType=new ArrayList<>();
  if(reqDto!=null){
      listOmsCycleType = reqDto.getCycleTypeList().stream().map(item -> BeanUtil.toBean(item, OmsCycleType.class)).collect(Collectors.toList());//sourceId:66775_1
    }
  
    /*3-4-01批量改周期类型[2170]   */
    
      bOOLEAN = mOmsCycleTypeService.batchUpdateCycleType(listOmsCycleType);
      
      
    
BatchUpdateCycleTypeSortRespDto retData = new BatchUpdateCycleTypeSortRespDto();
  
  

  
  
return retData;
  }

    /**
   * D3-4查询周期列表[2008]
   * gen by moon at 9/18/2022, 5:29:15 PM
   */
  @Trace(operationName = "D3-4查询周期列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCycleListRespDto queryCycleList(QueryCycleListReqDto reqDto){
    
      
      List<OmsCycle> listOmsCycle_1 =new ArrayList<>();
//步骤0: 3-4-04查询周期列表 - queryCycleList
     List<OmsCycle> listOmsCycle =new ArrayList<>();
    QueryCycleListReq queryCycleListReq=new QueryCycleListReq();
  if(reqDto!=null){
      queryCycleListReq.setCycleStandardName(reqDto.getCycleStandardName());//sourceId:333495_1
queryCycleListReq.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//sourceId:59225_1
queryCycleListReq.setCycleTypeStandard(reqDto.getCycleTypeStandard());//sourceId:59226_1
queryCycleListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//sourceId:59228_1
queryCycleListReq.setIsArchive(reqDto.getIsArchive());//sourceId:59229_1
    }
  
    /*3-4-04查询周期列表[2003]   */
    
      listOmsCycle = mOmsCycleService.queryCycleList(queryCycleListReq);
      
      listOmsCycle_1 = listOmsCycle;
    
QueryCycleListRespDto retData = new QueryCycleListRespDto();
  retData.setCycleList(listOmsCycle_1.stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//sourceId:59266_1
  

  
  
return retData;
  }

    /**
   * D3-4修改周期[2007]
   * gen by moon at 10/12/2022, 11:44:55 PM
   */
  @Trace(operationName = "D3-4修改周期")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdateCycleRespDto updateCycle(UpdateCycleReqDto reqDto){
    
      
      //步骤0: 3-4-01查周期类型详情 - queryCycleTypeDetail
     OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:63419_1
if(reqDto!=null){
      queryCycleTypeDetailReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:376551_1
    }
  
    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3-4修改周期-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq);
      
      
      
    
//步骤1: 3-4-03查周期类型实例详情 - queryCycleTypeInstanceDetail
     OmsCycleTypeInstance omsCycleTypeInstance = null;
    QueryCycleTypeInstanceDetailReq queryCycleTypeInstanceDetailReq=new QueryCycleTypeInstanceDetailReq();
  queryCycleTypeInstanceDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:63394_1
if(reqDto!=null){
      queryCycleTypeInstanceDetailReq.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:63377_1
    }
  
    /*3-4-03查周期类型实例详情[1894]   */
    Assert.isNull(queryCycleTypeInstanceDetailReq.getSubjectLifeCycle(),"D3-4修改周期-3-4-03查周期类型实例详情-主体生命周期不能为空",false);
      omsCycleTypeInstance = mOmsCycleTypeInstanceService.queryCycleTypeInstanceDetail(queryCycleTypeInstanceDetailReq);
      
      
      
    
//步骤2: M-生成周期排序(特殊方法） - generateOrderNumber
     //ModelCode: getDateTimeOrderNum
        Long  getDateTimeOrderNumRes=CommonFunctionHelper.getDateTimeOrderNum(reqDto.getCycleStartTime(),reqDto.getCycleEndTime());
         

    
//步骤3: 3-4-04修改周期 - updateCycle
     boolean bOOLEAN ;
    if(omsCycleType !=null){
          OmsCycle omsCycle=new OmsCycle();
  if(reqDto!=null){
      omsCycle.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:59202_1
omsCycle.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:59203_1
omsCycle.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:59204_1
omsCycle.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:59205_1
omsCycle.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:59206_1
//omsCycle.setCycleEndFirstDay(reqDto.getCycleEndFirstDay());//SimpleFieldAssign//sourceId:70818_1
omsCycle.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:59207_1
omsCycle.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:59211_1
    }
if(omsCycleType!=null){
      omsCycle.setCycleTypeName(omsCycleType.getCycleTypeName());//SimpleFieldAssign//sourceId:70817_1
omsCycle.setCycleTypeStandard(omsCycleType.getCycleTypeStandard());//SimpleFieldAssign//sourceId:103362_1
omsCycle.setCycleSystemCode(omsCycleType.getCycleSystemCode());//SimpleFieldAssign//sourceId:59208_1
    }
if(omsCycleTypeInstance!=null){
      omsCycle.setCycleNumberShortName(omsCycleTypeInstance.getCycleNumberShortName());//SimpleFieldAssign//sourceId:70819_1
    }
if(getDateTimeOrderNumRes!=null){
      omsCycle.setOrderNumber(getDateTimeOrderNumRes!=null?Long.valueOf(getDateTimeOrderNumRes):null);//SimpleFieldAssign//sourceId:70823_1
    }
  
    /*3-4-04修改周期[2002]   */
    Assert.isNull(omsCycle.getCycleId(),"D3-4修改周期-3-4-04修改周期-周期ID不能为空",false);
      bOOLEAN = mOmsCycleService.updateCycle(omsCycle);
      
      
      
           }
    
UpdateCycleRespDto retData = new UpdateCycleRespDto();
  
  

  
  
return retData;
  }

    /**
   * D3-4新增周期[2006]
   * gen by moon at 11/26/2022, 6:24:22 PM
   */
  @Trace(operationName = "D3-4新增周期")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddCycleRespDto addCycle(AddCycleReqDto reqDto){
    
      
      String string_1 =null;
//步骤0: 3-4-01查周期类型详情 - queryCycleTypeDetail
     OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setIsArchive("FALSE");//sourceId:63213_1
if(reqDto!=null){
      queryCycleTypeDetailReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:327686_1
    }
  
    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeCode(),"D3-4新增周期-3-4-01查周期类型详情-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getIsArchive(),"D3-4新增周期-3-4-01查周期类型详情-是否存档不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq);
      Assert.isTrue(omsCycleType== null||  omsCycleType.getCycleTypeId() ==null,"找不到数据，系统异常",false);
      
      
    
//步骤1: M-生成周期排序(特殊方法） - generateOrderNumber
     //ModelCode: getDateTimeOrderNum
        Long  getDateTimeOrderNumRes=CommonFunctionHelper.getDateTimeOrderNum(reqDto.getCycleStartTime(),reqDto.getCycleEndTime());
         

    
//步骤2: 3-4-04新增周期 - addCycle
     String string = null;
    if(omsCycleType !=null){
          OmsCycle omsCycle=new OmsCycle();
  if(reqDto!=null){
      omsCycle.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:59182_1
omsCycle.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:59183_1
omsCycle.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:59184_1
//omsCycle.setCycleEndFirstDay(reqDto.getCycleEndFirstDay());//SimpleFieldAssign//sourceId:70810_1
omsCycle.setCycleTypeStandard(reqDto.getCycleTypeStandard());//SimpleFieldAssign//sourceId:59188_1
omsCycle.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:59185_1
omsCycle.setCycleTypeName(reqDto.getCycleTypeName());//SimpleFieldAssign//sourceId:70140_1
omsCycle.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:74894_1
omsCycle.setCycleNumberShortName(reqDto.getCycleNumberShortName());//SimpleFieldAssign//sourceId:74895_1
omsCycle.setPlatformData(reqDto.getPlatformData());//SimpleFieldAssign//sourceId:59189_1
omsCycle.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:59190_1
    }
if(omsCycleType!=null){
      omsCycle.setCycleSystemCode(omsCycleType.getCycleSystemCode());//SimpleFieldAssign//sourceId:259711_1
    }
if(getDateTimeOrderNumRes!=null){
      omsCycle.setOrderNumber(getDateTimeOrderNumRes);//sourceId:70142_1
    }
  
    /*3-4-04新增周期[2001]   */
    Assert.isNull(omsCycle.getCycleStandardName(),"D3-4新增周期-3-4-04新增周期-周期名称不能为空",false);
Assert.isNull(omsCycle.getCycleStartTime(),"D3-4新增周期-3-4-04新增周期-周期开始时间不能为空",false);
Assert.isNull(omsCycle.getCycleEndTime(),"D3-4新增周期-3-4-04新增周期-周期结束时间不能为空",false);
Assert.isNull(omsCycle.getCycleTypeStandard(),"D3-4新增周期-3-4-04新增周期-冗余周期类型标准化不能为空",false);
Assert.isNull(omsCycle.getCycleTypeCode(),"D3-4新增周期-3-4-04新增周期-周期类型标识不能为空",false);
Assert.isNull(omsCycle.getCycleTypeName(),"D3-4新增周期-3-4-04新增周期-周期类型名称不能为空",false);
Assert.isNull(omsCycle.getPlatformData(),"D3-4新增周期-3-4-04新增周期-是否是平台不能为空",false);
Assert.isNull(omsCycle.getCycleSystemCode(),"D3-4新增周期-3-4-04新增周期-周期体系类型标识不能为空",false);
Assert.isNull(omsCycle.getOrderNumber(),"D3-4新增周期-3-4-04新增周期-排序不能为空",false);
Assert.isNull(omsCycle.getSubjectLifeCycle(),"D3-4新增周期-3-4-04新增周期-主体生命周期不能为空",false);
      string = mOmsCycleService.addCycle(omsCycle);
      
      
      string_1 = string;
           }
    
AddCycleRespDto retData = new AddCycleRespDto();
  if(string_1!=null){
      retData.setCycleId(string_1);//sourceId:59201_1
    }
  

  
  
return retData;
  }

    /**
     * D3-4查询周期类型实例详情[1898]
     */
    @Trace(operationName = "D3-4查询周期类型实例详情")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryCycleTypeInstanceDetailRespDto queryCycleTypeInstanceDetail(QueryCycleTypeInstanceDetailReqDto reqDto) {


        OmsCycleTypeInstance omsCycleTypeInstance_1 = null;
//步骤0: 3-4-03查周期类型实例详情 - queryCycleTypeInstanceDetail
        OmsCycleTypeInstance omsCycleTypeInstance = null;
        QueryCycleTypeInstanceDetailReq queryCycleTypeInstanceDetailReq = new QueryCycleTypeInstanceDetailReq();
        if (reqDto != null) {
            queryCycleTypeInstanceDetailReq.setCycleTypeInstanceId(reqDto.getCycleTypeInstanceId());//sourceId:57357_1
            queryCycleTypeInstanceDetailReq.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//sourceId:57359_1
            queryCycleTypeInstanceDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//sourceId:57379_1
            queryCycleTypeInstanceDetailReq.setIsArchive(reqDto.getIsArchive());//sourceId:57360_1
        }

        /*3-4-03查周期类型实例详情[1894]   */
        omsCycleTypeInstance = mOmsCycleTypeInstanceService.queryCycleTypeInstanceDetail(queryCycleTypeInstanceDetailReq);

        omsCycleTypeInstance_1 = omsCycleTypeInstance;

        QueryCycleTypeInstanceDetailRespDto retData = new QueryCycleTypeInstanceDetailRespDto();
        if (omsCycleTypeInstance_1 != null) {
            retData.setCycleTypeInstanceId(omsCycleTypeInstance_1.getCycleTypeInstanceId());//sourceId:57385_1
            retData.setCycleTypeId(omsCycleTypeInstance_1.getCycleTypeId());//sourceId:57386_1
            retData.setCycleTypeInstanceCode(omsCycleTypeInstance_1.getCycleTypeInstanceCode());//sourceId:57387_1
            retData.setCycleStandardName(omsCycleTypeInstance_1.getCycleStandardName());//sourceId:57388_1
            retData.setCycleNumberShortName(omsCycleTypeInstance_1.getCycleNumberShortName());//sourceId:57389_1
            retData.setOrderNumber(omsCycleTypeInstance_1.getOrderNumber());//sourceId:57390_1
            retData.setSubjectLifeCycle(omsCycleTypeInstance_1.getSubjectLifeCycle());//sourceId:57391_1
            retData.setOperationInductionId(omsCycleTypeInstance_1.getOperationInductionId());//sourceId:57393_1
            retData.setOperateTime(omsCycleTypeInstance_1.getOperateTime());//sourceId:57394_1
        }


        return retData;
    }

    /**
   * D3-4查询周期类型详情[1882]
   * gen by moon at 8/25/2022, 6:42:04 PM
   */
  @Trace(operationName = "D3-4查询周期类型详情")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCycleTypeDetailRespDto queryCycleTypeDetail(QueryCycleTypeDetailReqDto reqDto){
    
      
      OmsCycleType omsCycleType_1 = null;
//步骤0: 3-4-01查周期类型详情 - queryCycleTypeDetail
     OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  if(reqDto!=null){
      queryCycleTypeDetailReq.setCycleTypeId(reqDto.getCycleTypeId());//sourceId:57304_1
    }
  
    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeId(),"D3-4查询周期类型详情-3-4-01查周期类型详情-周期类型ID不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq);
      
      omsCycleType_1 = omsCycleType;
    
QueryCycleTypeDetailRespDto retData = new QueryCycleTypeDetailRespDto();
  if(omsCycleType_1!=null){
      retData.setCycleTypeId(omsCycleType_1.getCycleTypeId());//sourceId:57338_1
retData.setCycleSystemCode(omsCycleType_1.getCycleSystemCode());//sourceId:57339_1
retData.setCycleTypeCode(omsCycleType_1.getCycleTypeCode());//sourceId:57340_1
retData.setCycleTypeNumber(omsCycleType_1.getCycleTypeNumber());//sourceId:57341_1
retData.setCycleTypeName(omsCycleType_1.getCycleTypeName());//sourceId:57342_1
retData.setCycleTypeStandard(omsCycleType_1.getCycleTypeStandard());//sourceId:57343_1
retData.setIsWorkCycleType(omsCycleType_1.getIsWorkCycleType());//sourceId:57344_1
retData.setCycleTypeUsage(omsCycleType_1.getCycleTypeUsage());//sourceId:57345_1
retData.setOrderNumber(omsCycleType_1.getOrderNumber());//sourceId:57346_1
retData.setCustomCycleTypeCode(omsCycleType_1.getCustomCycleTypeCode());//sourceId:57347_1
retData.setCustomCycleTypeNum(omsCycleType_1.getCustomCycleTypeNum());//sourceId:57348_1
retData.setSubjectLifeCycle(omsCycleType_1.getSubjectLifeCycle());//sourceId:57349_1
retData.setOperationInductionId(omsCycleType_1.getOperationInductionId());//sourceId:57350_1
retData.setOperateTime(omsCycleType_1.getOperateTime());//sourceId:57351_1
    }
  

  
  
return retData;
  }

    /**
     * D3-4修改工作周期类型关系[1876]
     */
    @Trace(operationName = "D3-4修改工作周期类型关系")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UpdateCycleTypeInstanceRelationshipRespDto updateCycleTypeInstanceRelationship(UpdateCycleTypeInstanceRelationshipReqDto reqDto) {


        //步骤0: 3-4-02修改工作周期类型关系 - updateCycleTypeInstanceRelationship
        boolean bOOLEAN;
        OmsCycleTypeInstanceRelationship omsCycleTypeInstanceRelationship = new OmsCycleTypeInstanceRelationship();
        if (reqDto != null) {
            omsCycleTypeInstanceRelationship.setCycleRelationshipId(reqDto.getCycleRelationshipId());//sourceId:57218_1
            omsCycleTypeInstanceRelationship.setRelationCycleTypeCode(reqDto.getRelationCycleTypeCode());//sourceId:57220_1
            omsCycleTypeInstanceRelationship.setSubCycleNumber(reqDto.getSubCycleNumber());//sourceId:57221_1
            omsCycleTypeInstanceRelationship.setIsInterim(reqDto.getIsInterim());//sourceId:57222_1
            omsCycleTypeInstanceRelationship.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//sourceId:57223_1
        }

        /*3-4-02修改工作周期类型关系[1872]   */
        bOOLEAN = mOmsCycleTypeInstanceRelationshipService.updateCycleTypeInstanceRelationship(omsCycleTypeInstanceRelationship);


        UpdateCycleTypeInstanceRelationshipRespDto retData = new UpdateCycleTypeInstanceRelationshipRespDto();


        return retData;
    }

    /**
   * D3-4查询周期类型实例列表[1867]
   * gen by moon at 8/10/2022, 3:28:10 AM
   */
  @Trace(operationName = "D3-4查询周期类型实例列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCycleTypeInstanceListRespDto queryCycleTypeInstanceList(QueryCycleTypeInstanceListReqDto reqDto){
    
      
      List<OmsCycleTypeInstance> listOmsCycleTypeInstance_1 = new ArrayList<>();
//步骤0: 3-4-02查周期类型实例列表 - queryCycleTypeInstanceList
     List<OmsCycleTypeInstance> listOmsCycleTypeInstance =new ArrayList<>();
    QueryCycleTypeInstanceListReq queryCycleTypeInstanceListReq=new QueryCycleTypeInstanceListReq();
  if(reqDto!=null){
      queryCycleTypeInstanceListReq.setCycleTypeId(reqDto.getCycleTypeId());//sourceId:57266_1
queryCycleTypeInstanceListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//sourceId:57267_1
queryCycleTypeInstanceListReq.setIsArchive(reqDto.getIsArchive());//sourceId:57268_1
    }
  
    /*3-4-02查周期类型实例列表[1863]   */
    Assert.isNull(queryCycleTypeInstanceListReq.getCycleTypeId(),"D3-4查询周期类型实例列表-3-4-02查周期类型实例列表-周期类型ID不能为空",false);
      listOmsCycleTypeInstance = mOmsCycleTypeInstanceService.queryCycleTypeInstanceList(queryCycleTypeInstanceListReq);
      
      listOmsCycleTypeInstance_1 = listOmsCycleTypeInstance;
    
QueryCycleTypeInstanceListRespDto retData = new QueryCycleTypeInstanceListRespDto();
  retData.setCycleTypeInstanceList(listOmsCycleTypeInstance_1.stream().map(item -> BeanUtil.toBean(item, CycleTypeInstanceDto.class)).collect(Collectors.toList()));//sourceId:57284_1
  

  
  
return retData;
  }

    /**
   * D3-4修改周期类型实例[1866]
   * gen by moon at 8/10/2022, 3:28:10 AM
   */
  @Trace(operationName = "D3-4修改周期类型实例")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdateCycleTypeInstanceRespDto updateCycleTypeInstance(UpdateCycleTypeInstanceReqDto reqDto){
    
      
      //步骤0: 3-4-02修改周期类型实例 - updateCycleTypeInstance
     boolean bOOLEAN ;
    OmsCycleTypeInstance omsCycleTypeInstance=new OmsCycleTypeInstance();
  if(reqDto!=null){
      omsCycleTypeInstance.setCycleTypeInstanceId(reqDto.getCycleTypeInstanceId());//sourceId:57202_1
omsCycleTypeInstance.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//sourceId:57204_1
omsCycleTypeInstance.setCycleStandardName(reqDto.getCycleStandardName());//sourceId:57205_1
omsCycleTypeInstance.setCycleNumberShortName(reqDto.getCycleNumberShortName());//sourceId:57206_1
omsCycleTypeInstance.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//sourceId:57208_1
    }
  
    /*3-4-02修改周期类型实例[1862]   */
    Assert.isNull(omsCycleTypeInstance.getCycleTypeInstanceId(),"D3-4修改周期类型实例-3-4-02修改周期类型实例-周期类型实例ID不能为空",false);
      bOOLEAN = mOmsCycleTypeInstanceService.updateCycleTypeInstance(omsCycleTypeInstance);
      
      
    
UpdateCycleTypeInstanceRespDto retData = new UpdateCycleTypeInstanceRespDto();
  
  

  
  
return retData;
  }

    /**
   * D3-4新增周期类型实例[1865]
   * gen by moon at 8/10/2022, 3:28:08 AM
   */
  @Trace(operationName = "D3-4新增周期类型实例")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddCycleTypeInstanceRespDto addCycleTypeInstance(AddCycleTypeInstanceReqDto reqDto){
    
      
      String string_1 = null;
//步骤0: 3-4-02新增周期类型实例 - addCycleTypeInstance
     String string = null;
    OmsCycleTypeInstance omsCycleTypeInstance=new OmsCycleTypeInstance();
  if(reqDto!=null){
      omsCycleTypeInstance.setCycleTypeId(reqDto.getCycleTypeId());//sourceId:57150_1
omsCycleTypeInstance.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//sourceId:57151_1
omsCycleTypeInstance.setCycleStandardName(reqDto.getCycleStandardName());//sourceId:57152_1
omsCycleTypeInstance.setCycleNumberShortName(reqDto.getCycleNumberShortName());//sourceId:57153_1
omsCycleTypeInstance.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//sourceId:57155_1
    }
  
    /*3-4-02新增周期类型实例[1861]   */
    Assert.isNull(omsCycleTypeInstance.getCycleTypeId(),"D3-4新增周期类型实例-3-4-02新增周期类型实例-周期类型ID不能为空",false);
Assert.isNull(omsCycleTypeInstance.getCycleTypeInstanceCode(),"D3-4新增周期类型实例-3-4-02新增周期类型实例-周期类型实例标识不能为空",false);
Assert.isNull(omsCycleTypeInstance.getCycleStandardName(),"D3-4新增周期类型实例-3-4-02新增周期类型实例-周期类型实例名称不能为空",false);
Assert.isNull(omsCycleTypeInstance.getCycleNumberShortName(),"D3-4新增周期类型实例-3-4-02新增周期类型实例-周期类型实例简称不能为空",false);
Assert.isNull(omsCycleTypeInstance.getSubjectLifeCycle(),"D3-4新增周期类型实例-3-4-02新增周期类型实例-主体生命周期不能为空",false);
      string = mOmsCycleTypeInstanceService.addCycleTypeInstance(omsCycleTypeInstance);
      
      string_1 = string;
    
AddCycleTypeInstanceRespDto retData = new AddCycleTypeInstanceRespDto();
  if(string_1!=null){
      retData.setCycleTypeInstanceId(string_1);//sourceId:57163_1
    }
  

  
  
return retData;
  }

    /**
   * D3-4查询周期类型列表[1855]
   * gen by moon at 10/11/2022, 6:03:43 PM
   */
  @Trace(operationName = "D3-4查询周期类型列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCycleTypeListRespDto queryCycleTypeList(QueryCycleTypeListReqDto reqDto){
    
      
      List<OmsCycleType> listOmsCycleType_1 =new ArrayList<>();
//步骤0: 3-4-01查周期类型列表 - queryCycleTypeList
     List<OmsCycleType> listOmsCycleType =new ArrayList<>();
    QueryCycleTypeListReq queryCycleTypeListReq=new QueryCycleTypeListReq();
  if(reqDto!=null){
      queryCycleTypeListReq.setCycleSystemCode(reqDto.getCycleSystemCode());//SimpleFieldAssign//sourceId:57232_1
queryCycleTypeListReq.setCycleTypeStandard(reqDto.getCycleTypeStandard());//SimpleFieldAssign//sourceId:57233_1
queryCycleTypeListReq.setIsWorkCycleType(reqDto.getIsWorkCycleType());//SimpleFieldAssign//sourceId:57234_1
queryCycleTypeListReq.setCycleTypeUsage(reqDto.getCycleTypeUsage());//SimpleFieldAssign//sourceId:57235_1
queryCycleTypeListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:57236_1
queryCycleTypeListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:57237_1
    }
  
    /*3-4-01查周期类型列表[1851]   */
    
      listOmsCycleType = mOmsCycleTypeService.queryCycleTypeList(queryCycleTypeListReq);
      
      
      listOmsCycleType_1 = listOmsCycleType;
    
QueryCycleTypeListRespDto retData = new QueryCycleTypeListRespDto();
  retData.setCycleTypeList(listOmsCycleType_1.stream().map(item -> BeanUtil.toBean(item, CycleTypeDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:57253_1
  

  
  
return retData;
  }

    /**
   * D3-4修改周期类型[1854]
   * gen by moon at 8/10/2022, 3:28:05 AM
   */
  @Trace(operationName = "D3-4修改周期类型")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdateCycleTypeRespDto updateCycleType(UpdateCycleTypeReqDto reqDto){
    
      
      //步骤0: 3-4-01修改周期类型 - updateCycleType
     boolean bOOLEAN ;
    OmsCycleType omsCycleType=new OmsCycleType();
  if(reqDto!=null){
      omsCycleType.setCycleTypeId(reqDto.getCycleTypeId());//sourceId:57176_1
omsCycleType.setCycleSystemCode(reqDto.getCycleSystemCode());//sourceId:57177_1
omsCycleType.setCycleTypeCode(reqDto.getCycleTypeCode());//sourceId:57178_1
omsCycleType.setCycleTypeName(reqDto.getCycleTypeName());//sourceId:57180_1
omsCycleType.setCycleTypeStandard(reqDto.getCycleTypeStandard());//sourceId:57181_1
omsCycleType.setIsWorkCycleType(reqDto.getIsWorkCycleType());//sourceId:57182_1
omsCycleType.setCycleTypeUsage(reqDto.getCycleTypeUsage());//sourceId:57183_1
omsCycleType.setCustomCycleTypeCode(reqDto.getCustomCycleTypeCode());//sourceId:57185_1
omsCycleType.setCustomCycleTypeNum(reqDto.getCustomCycleTypeNum());//sourceId:57186_1
omsCycleType.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//sourceId:57187_1
    }
  
    /*3-4-01修改周期类型[1850]   */
    Assert.isNull(omsCycleType.getCycleTypeId(),"D3-4修改周期类型-3-4-01修改周期类型-周期类型ID不能为空",false);
      bOOLEAN = mOmsCycleTypeService.updateCycleType(omsCycleType);
      
      
    
UpdateCycleTypeRespDto retData = new UpdateCycleTypeRespDto();
  
  

  
  
return retData;
  }

    /**
   * D3-4新增周期类型[1853]
   * gen by moon at 10/17/2022, 12:51:34 AM
   */
  @Trace(operationName = "D3-4新增周期类型")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddCycleTypeRespDto addCycleType(AddCycleTypeReqDto reqDto){
    
      
      String string_1 =null;
//步骤0: 3-4-01新增周期类型 - addCycleType
     String string = null;
    OmsCycleType omsCycleType=new OmsCycleType();
  if(reqDto!=null){
      omsCycleType.setCycleSystemCode(reqDto.getCycleSystemCode());//SimpleFieldAssign//sourceId:57126_1
omsCycleType.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:57127_1
omsCycleType.setCycleTypeName(reqDto.getCycleTypeName());//SimpleFieldAssign//sourceId:57129_1
omsCycleType.setCycleTypeStandard(reqDto.getCycleTypeStandard());//SimpleFieldAssign//sourceId:57130_1
omsCycleType.setIsWorkCycleType(reqDto.getIsWorkCycleType());//SimpleFieldAssign//sourceId:57131_1
omsCycleType.setCycleTypeUsage(reqDto.getCycleTypeUsage());//SimpleFieldAssign//sourceId:57132_1
omsCycleType.setCustomCycleTypeCode(reqDto.getCustomCycleTypeCode());//SimpleFieldAssign//sourceId:103345_1
omsCycleType.setCustomCycleTypeNum(reqDto.getCustomCycleTypeNum());//SimpleFieldAssign//sourceId:103346_1
omsCycleType.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:57136_1
    }
  
    /*3-4-01新增周期类型[1849]   */
    Assert.isNull(omsCycleType.getCycleSystemCode(),"D3-4新增周期类型-3-4-01新增周期类型-周期体系类型标识不能为空",false);
Assert.isNull(omsCycleType.getCycleTypeCode(),"D3-4新增周期类型-3-4-01新增周期类型-周期类型标识不能为空",false);
Assert.isNull(omsCycleType.getCycleTypeName(),"D3-4新增周期类型-3-4-01新增周期类型-周期类型名称不能为空",false);
Assert.isNull(omsCycleType.getCycleTypeStandard(),"D3-4新增周期类型-3-4-01新增周期类型-周期类型标准化不能为空",false);
Assert.isNull(omsCycleType.getIsWorkCycleType(),"D3-4新增周期类型-3-4-01新增周期类型-是否工作周期不能为空",false);
Assert.isNull(omsCycleType.getCycleTypeUsage(),"D3-4新增周期类型-3-4-01新增周期类型-周期类型用途不能为空",false);
Assert.isNull(omsCycleType.getSubjectLifeCycle(),"D3-4新增周期类型-3-4-01新增周期类型-主体生命周期不能为空",false);
      string = mOmsCycleTypeService.addCycleType(omsCycleType);
      
      
      string_1 = string;
    
AddCycleTypeRespDto retData = new AddCycleTypeRespDto();
  if(string_1!=null){
      retData.setCycleTypeId(string_1);//SimpleFieldAssign//sourceId:57149_1
    }
  

  
  
return retData;
  }
/**
   * D3-4查询周期详情(公共)[2009]
   * gen by moon at 11/26/2022, 6:24:26 PM
   */
  @Trace(operationName = "D3-4查询周期详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCycleDetailComRespDto queryCycleDetailCom(QueryCycleDetailComReqDto reqDto){
    
      
      OmsCycle omsCycle_1 =null;
//步骤0: 3-4-04查询周期详情 - queryCycleDetail
     OmsCycle omsCycle = null;
    QueryCycleDetailReq queryCycleDetailReq=new QueryCycleDetailReq();
  if(reqDto!=null){
      queryCycleDetailReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:59268_1
queryCycleDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:59269_1
queryCycleDetailReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:59270_1
queryCycleDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:457665_1
    }
  
    /*3-4-04查询周期详情[2004]   */
    Assert.isNull(queryCycleDetailReq.getCycleId(),"D3-4查询周期详情(公共)-3-4-04查询周期详情-周期ID不能为空",false);
      omsCycle = mOmsCycleService.queryCycleDetail(queryCycleDetailReq);
      
      
      omsCycle_1 = omsCycle;
    
QueryCycleDetailComRespDto retData = new QueryCycleDetailComRespDto();
  if(omsCycle_1!=null){
      retData.setCycleId(omsCycle_1.getCycleId());//SimpleFieldAssign//sourceId:59292_1
retData.setCycleStandardName(omsCycle_1.getCycleStandardName());//SimpleFieldAssign//sourceId:59293_1
retData.setCycleStartTime(omsCycle_1.getCycleStartTime());//SimpleFieldAssign//sourceId:59294_1
retData.setCycleEndTime(omsCycle_1.getCycleEndTime());//SimpleFieldAssign//sourceId:59295_1
retData.setCycleTypeCode(omsCycle_1.getCycleTypeCode());//SimpleFieldAssign//sourceId:59296_1
retData.setCycleTypeName(omsCycle_1.getCycleTypeName());//SimpleFieldAssign//sourceId:376505_1
retData.setCycleTypeInstanceCode(omsCycle_1.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:59297_1
retData.setCycleNumberShortName(omsCycle_1.getCycleNumberShortName());//SimpleFieldAssign//sourceId:376506_1
retData.setCycleSystemCode(omsCycle_1.getCycleSystemCode());//SimpleFieldAssign//sourceId:59298_1
retData.setCycleTypeStandard(omsCycle_1.getCycleTypeStandard());//SimpleFieldAssign//sourceId:59299_1
retData.setPlatformData(omsCycle_1.getPlatformData());//SimpleFieldAssign//sourceId:59300_1
retData.setSubjectLifeCycle(omsCycle_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:59301_1
retData.setOperationInductionId(omsCycle_1.getOperationInductionId());//SimpleFieldAssign//sourceId:59302_1
retData.setOperateTime(omsCycle_1.getOperateTime());//SimpleFieldAssign//sourceId:59303_1
    }
  

  
  
return retData;
  }
/**
   * D3-查询子周期列表(公共)[3713]
   * gen by moon at 12/4/2022, 10:18:06 PM
   */
  @Trace(operationName = "D3-查询子周期列表(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QuerySubcycleListComRespDto querySubcycleListCom(QuerySubcycleListComReqDto reqDto){
    
      
      List<OmsExecuteCycleStage> listOmsExecuteCycleStage_1 =new ArrayList<>();
List<OmsExecuteCycleStage> listOmsExecuteCycleStage_3 =new ArrayList<>();
List<OmsExecuteCycleStage> listOmsExecuteCycleStage_5 =new ArrayList<>();
if((reqDto!= null&&  reqDto.getIsProcessCycleStage() !=null && reqDto.getIsProcessCycleStage().equals("TRUE")||reqDto!= null&&  reqDto.getIsSubCycle() !=null && reqDto.getIsSubCycle().equals("TRUE"))) {
        //if((D3-查询子周期列表(公共).是否过程周期阶段 等于 是 or D3-查询子周期列表(公共).是否子周期 等于 是))  11404
        
List<OmsExecuteCycleStage> listOmsExecuteCycleStage =new ArrayList<>();
    QueryExecuteCycleStageListReq queryExecuteCycleStageListReq=new QueryExecuteCycleStageListReq();
  queryExecuteCycleStageListReq.setIsLastCycle("TRUE");//sourceId:177778_1_11506
queryExecuteCycleStageListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:177779_1_11506
if(reqDto!=null){
      queryExecuteCycleStageListReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:177773_1_11506
queryExecuteCycleStageListReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:177774_1_11506
queryExecuteCycleStageListReq.setRelateContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:177761_1_11506
queryExecuteCycleStageListReq.setRelateContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:177762_1_11506
queryExecuteCycleStageListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:178090_1_11506
queryExecuteCycleStageListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:177766_1_11506
    }
  
    /*3-3-07查询执行周期阶段列表(查询末级周期类型)[3201]   */
    Assert.isNull(queryExecuteCycleStageListReq.getCycleStartTime(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表(查询末级周期类型)-周期开始时间不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq.getCycleEndTime(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表(查询末级周期类型)-周期结束时间不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq.getRelateContentTypeCode(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表(查询末级周期类型)-关联目标内容类型编码不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq.getRelateContentId(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表(查询末级周期类型)-关联目标内容ID不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq.getEvaluationTemplateId(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表(查询末级周期类型)-评价模板ID不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq.getSpaceId(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表(查询末级周期类型)-创建于空间ID不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq.getIsLastCycle(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表(查询末级周期类型)-是否末级周期不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq.getSubjectLifeCycle(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表(查询末级周期类型)-主体生命周期不能为空",false);
      listOmsExecuteCycleStage = mOmsExecuteCycleStageService.queryExecuteCycleStageList(queryExecuteCycleStageListReq);
      
      
      listOmsExecuteCycleStage_1 = listOmsExecuteCycleStage;
//processBranchName:正常结束 ,processBranchId:11416
        
      }
else if((reqDto!= null&&  reqDto.getIsParentCycle() !=null && reqDto.getIsParentCycle().equals("TRUE")||reqDto!= null&&  reqDto.getIsMetaphase() !=null && reqDto.getIsMetaphase().equals("TRUE"))){
       //elseif((D3-查询子周期列表(公共).是否父周期 等于 是 or D3-查询子周期列表(公共).是否中期 等于 是))  11413
      
List<OmsExecuteCycleStage> listOmsExecuteCycleStage_2 =new ArrayList<>();
    QueryExecuteCycleStageListReq queryExecuteCycleStageListReq_1=new QueryExecuteCycleStageListReq();
  queryExecuteCycleStageListReq_1.setIsSubCycle("TRUE");//sourceId:178027_1_11527
queryExecuteCycleStageListReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:178034_1_11527
if(reqDto!=null){
      queryExecuteCycleStageListReq_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:178028_1_11527
queryExecuteCycleStageListReq_1.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:178029_1_11527
queryExecuteCycleStageListReq_1.setRelateContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:178016_1_11527
queryExecuteCycleStageListReq_1.setRelateContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:178017_1_11527
queryExecuteCycleStageListReq_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:178019_1_11527
queryExecuteCycleStageListReq_1.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:178021_1_11527
    }
  
    /*3-3-07查询执行周期阶段列表（查子周期列表）[3201]   */
    Assert.isNull(queryExecuteCycleStageListReq_1.getCycleStartTime(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查子周期列表）-周期开始时间不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_1.getCycleEndTime(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查子周期列表）-周期结束时间不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_1.getRelateContentTypeCode(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查子周期列表）-关联目标内容类型编码不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_1.getRelateContentId(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查子周期列表）-关联目标内容ID不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_1.getEvaluationTemplateId(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查子周期列表）-评价模板ID不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_1.getSpaceId(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查子周期列表）-创建于空间ID不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_1.getIsSubCycle(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查子周期列表）-是否子周期不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_1.getSubjectLifeCycle(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查子周期列表）-主体生命周期不能为空",false);
      listOmsExecuteCycleStage_2 = mOmsExecuteCycleStageService.queryExecuteCycleStageList(queryExecuteCycleStageListReq_1);
      
      
      listOmsExecuteCycleStage_3 = listOmsExecuteCycleStage_2;
//processBranchName:正常结束 ,processBranchId:11415
        
    }
else if((reqDto!= null&&  reqDto.getIsDefinedExecuteCycleStage() !=null && reqDto.getIsDefinedExecuteCycleStage().equals("TRUE"))){
       //elseif(D3-查询子周期列表(公共).是否自定义执行周期阶段 等于 是)  11502
      
List<OmsExecuteCycleStage> listOmsExecuteCycleStage_4 =new ArrayList<>();
    QueryExecuteCycleStageListReq queryExecuteCycleStageListReq_2=new QueryExecuteCycleStageListReq();
  queryExecuteCycleStageListReq_2.setIsDefinedExecuteCycleStage("TRUE");//sourceId:178046_1_11528
queryExecuteCycleStageListReq_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:178065_1_11528
if(reqDto!=null){
      queryExecuteCycleStageListReq_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:178059_1_11528
queryExecuteCycleStageListReq_2.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:178060_1_11528
queryExecuteCycleStageListReq_2.setRelateContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:178047_1_11528
queryExecuteCycleStageListReq_2.setRelateContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:178048_1_11528
queryExecuteCycleStageListReq_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:178050_1_11528
queryExecuteCycleStageListReq_2.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:178052_1_11528
    }
  
    /*3-3-07查询执行周期阶段列表（查询自定义周期列表）[3201]   */
    Assert.isNull(queryExecuteCycleStageListReq_2.getCycleStartTime(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查询自定义周期列表）-周期开始时间不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_2.getCycleEndTime(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查询自定义周期列表）-周期结束时间不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_2.getRelateContentTypeCode(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查询自定义周期列表）-关联目标内容类型编码不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_2.getRelateContentId(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查询自定义周期列表）-关联目标内容ID不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_2.getEvaluationTemplateId(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查询自定义周期列表）-评价模板ID不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_2.getSpaceId(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查询自定义周期列表）-创建于空间ID不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_2.getIsDefinedExecuteCycleStage(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查询自定义周期列表）-是否自定义执行周期阶段不能为空",false);
Assert.isNull(queryExecuteCycleStageListReq_2.getSubjectLifeCycle(),"D3-查询子周期列表(公共)-3-3-07查询执行周期阶段列表（查询自定义周期列表）-主体生命周期不能为空",false);
      listOmsExecuteCycleStage_4 = mOmsExecuteCycleStageService.queryExecuteCycleStageList(queryExecuteCycleStageListReq_2);
      
      
      listOmsExecuteCycleStage_5 = listOmsExecuteCycleStage_4;
//processBranchName:正常结束 ,processBranchId:11504
        
    }
QuerySubcycleListComRespDto retData = new QuerySubcycleListComRespDto();
  retData.setExecuteCycleStageList(listOmsExecuteCycleStage_1.stream().map(item->item.getCycleId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:178092_1
retData.setExecuteCycleStageList(listOmsExecuteCycleStage_3.stream().map(item->item.getCycleId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:178092_1
retData.setExecuteCycleStageList(listOmsExecuteCycleStage_5.stream().map(item->item.getCycleId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:178092_1
  

  
  
return retData;
  }
/**
   * D3-查询上一周期详情(公共)[3689]
   * gen by moon at 12/10/2022, 4:43:20 PM
   */
  @Trace(operationName = "D3-查询上一周期详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryLastCycleDetailComRespDto queryLastCycleDetailCom(QueryLastCycleDetailComReqDto reqDto){
    
      
      ImplementGetLastFromDataListComRespDto implementGetLastFromDataListComRespDto_1 =null;
//步骤0: M3-获取接收字段（特殊方法） - obtainReceiveField
     //ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes = null;
    ObtainReceiveFieldReqDto receptionServiceReq=new ObtainReceiveFieldReqDto();


    /*M3-获取接收字段（特殊方法）[2451]  用于特殊方法接收上游入参。 */

      receptionServiceRes = nbCycleType.obtainReceiveField(receptionServiceReq);




//步骤1: 3-4-04查询周期详情 - queryCycleDetail
     OmsCycle omsCycle = null;
    QueryCycleDetailReq queryCycleDetailReq=new QueryCycleDetailReq();
  queryCycleDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:166692_1
if(reqDto!=null){
      queryCycleDetailReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:166691_1
    }
  
    /*3-4-04查询周期详情[2004]   */
    Assert.isNull(queryCycleDetailReq.getCycleId(),"D3-查询上一周期详情(公共)-3-4-04查询周期详情-周期ID不能为空",false);
Assert.isNull(queryCycleDetailReq.getSubjectLifeCycle(),"D3-查询上一周期详情(公共)-3-4-04查询周期详情-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryCycleDetail(queryCycleDetailReq);
      
      
      
    
//步骤2: 3-4-04查询历史周期列表 - queryHistoryCycleList
     List<OmsCycle> listOmsCycle =new ArrayList<>();
    if(omsCycle !=null){
          QueryHistoryCycleListReq queryHistoryCycleListReq=new QueryHistoryCycleListReq();
  queryHistoryCycleListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:166740_1
if(omsCycle!=null){
      queryHistoryCycleListReq.setCycleStartTime(omsCycle.getCycleStartTime());//SimpleFieldAssign//sourceId:166732_1
queryHistoryCycleListReq.setCycleEndTime(omsCycle.getCycleEndTime());//SimpleFieldAssign//sourceId:166733_1
queryHistoryCycleListReq.setCycleTypeCode(omsCycle.getCycleTypeCode());//SimpleFieldAssign//sourceId:166734_1
queryHistoryCycleListReq.setPlatformData(omsCycle.getPlatformData());//SimpleFieldAssign//sourceId:490051_1
queryHistoryCycleListReq.setSpaceId(omsCycle.getSpaceId());//SimpleFieldAssign//sourceId:166742_1
    }
  
    /*3-4-04查询历史周期列表[3690]   */
    Assert.isNull(queryHistoryCycleListReq.getCycleStartTime(),"D3-查询上一周期详情(公共)-3-4-04查询历史周期列表-周期开始时间不能为空",false);
Assert.isNull(queryHistoryCycleListReq.getCycleEndTime(),"D3-查询上一周期详情(公共)-3-4-04查询历史周期列表-周期结束时间不能为空",false);
Assert.isNull(queryHistoryCycleListReq.getCycleTypeCode(),"D3-查询上一周期详情(公共)-3-4-04查询历史周期列表-周期类型标识不能为空",false);
Assert.isNull(queryHistoryCycleListReq.getPlatformData(),"D3-查询上一周期详情(公共)-3-4-04查询历史周期列表-是否是平台不能为空",false);
Assert.isNull(queryHistoryCycleListReq.getSubjectLifeCycle(),"D3-查询上一周期详情(公共)-3-4-04查询历史周期列表-主体生命周期不能为空",false);
Assert.isNull(queryHistoryCycleListReq.getSpaceId(),"D3-查询上一周期详情(公共)-3-4-04查询历史周期列表-创建于空间ID不能为空",false);
      listOmsCycle = mOmsCycleService.queryHistoryCycleList(queryHistoryCycleListReq);
      
      
      
           }
    
//步骤3: D2执行取排序列表中上一条数据服务(公共) - implementGetLastFromDataListCom
     ImplementGetLastFromDataListComRespDto implementGetLastFromDataListComRespDto = null;
    if(listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)&& listOmsCycle.size()>0 ){
          ImplementGetLastFromDataListComReqDto implementGetLastFromDataListComReqDto=new ImplementGetLastFromDataListComReqDto();
  implementGetLastFromDataListComReqDto.setOrderSizeType("FROM_SMALL_LARGE");//sourceId:504317_1
  if(listOmsCycle!= null&& !CollectionUtil.isEmpty(listOmsCycle)&&  listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)){
      implementGetLastFromDataListComReqDto.setGetLastFromDataSpecifiedList(//objList-to-objLists
        listOmsCycle.stream().map(item -> {
      GetLastFromDataSpecifiedDto elm = new GetLastFromDataSpecifiedDto();
      elm.setCommPrimaryKey(item.getCycleId());//SimpleFieldAssign//sourceId:130156_2
elm.setOutputNum(item.getOrderNumber());//SimpleFieldAssign//sourceId:130157_2
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:504316_1
    }
if(reqDto!=null){
      implementGetLastFromDataListComReqDto.setCommPrimaryKey(reqDto.getCycleId());//SimpleFieldAssign//sourceId:504319_1
    }
  
    /*D2执行取排序列表中上一条数据服务(公共)[5236]   */
    Assert.isNull(implementGetLastFromDataListComReqDto.getCommPrimaryKey(),"D3-查询上一周期详情(公共)-D2执行取排序列表中上一条数据服务(公共)-通用主键ID不能为空",false);
Assert.isNull(implementGetLastFromDataListComReqDto.getOrderSizeType(),"D3-查询上一周期详情(公共)-D2执行取排序列表中上一条数据服务(公共)-排序大小类型不能为空",false);
      implementGetLastFromDataListComRespDto = fwCompInterfaceModeClient.implementGetLastFromDataListCom(implementGetLastFromDataListComReqDto).getData();

      
      implementGetLastFromDataListComRespDto_1 = implementGetLastFromDataListComRespDto;
           }
    
QueryLastCycleDetailComRespDto retData = new QueryLastCycleDetailComRespDto();
  if(implementGetLastFromDataListComRespDto_1!=null){
      retData.setLastCycleId(implementGetLastFromDataListComRespDto_1.getCommPrimaryKey());//SimpleFieldAssign//sourceId:500779_1
retData.setLastCycleId(implementGetLastFromDataListComRespDto_1.getCommPrimaryKey());//SimpleFieldAssign//sourceId:500779_1
    }
  

  
  
return retData;
  }
/**
   * D3-4新增周期类型(公共)[3712]
   * gen by moon at 11/17/2022, 9:03:37 PM
   */
  @Trace(operationName = "D3-4新增周期类型(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddCycleTypeComRespDto addCycleTypeCom(AddCycleTypeComReqDto reqDto){
    
      
      OmsCycleType omsCycleType_1 =null;
OmsCycleType omsCycleType_6 =null;
//virtualUsage 3-4-04查询用于被评对象目标周期的周期列表  19339
      List<OmsCycle> listOmsCycle =new ArrayList<>();
    QueryCycleListReq queryCycleListReq=new QueryCycleListReq();
  queryCycleListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:171956_1_19339
if(reqDto!=null){
      queryCycleListReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:171959_1_19339
queryCycleListReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:171960_1_19339
queryCycleListReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:171952_1_19339
    }
  
    /*3-4-04查询用于被评对象目标周期的周期列表[2003]   */
    Assert.isNull(queryCycleListReq.getCycleStartTime(),"D3-4新增周期类型(公共)-3-4-04查询用于被评对象目标周期的周期列表-周期开始时间不能为空",false);
Assert.isNull(queryCycleListReq.getCycleEndTime(),"D3-4新增周期类型(公共)-3-4-04查询用于被评对象目标周期的周期列表-周期结束时间不能为空",false);
Assert.isNull(queryCycleListReq.getCycleTypeCode(),"D3-4新增周期类型(公共)-3-4-04查询用于被评对象目标周期的周期列表-周期类型标识不能为空",false);
Assert.isNull(queryCycleListReq.getSubjectLifeCycle(),"D3-4新增周期类型(公共)-3-4-04查询用于被评对象目标周期的周期列表-主体生命周期不能为空",false);
      listOmsCycle = mOmsCycleService.queryCycleList(queryCycleListReq);
      
      
      
//virtualUsage D2计算数据集内容条数服务(公共)  19340
      CalculateContentAmountComRespDto calculateContentAmountComRespDto = null;
    if(listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)&& listOmsCycle.size()>0 ){
          CalculateContentAmountComReqDto calculateContentAmountComReqDto=new CalculateContentAmountComReqDto();
  calculateContentAmountComReqDto.setContentAmountList(listOmsCycle.stream().map(item->item.getCycleId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:171963_1_19340
  
    /*D2计算数据集内容条数服务(公共)[3386]   */
    
      calculateContentAmountComRespDto = fwCompStatisticalDataClient.calculateContentAmountCom(calculateContentAmountComReqDto).getData();
      
      
      
           }
//virtualUsage 3-4-01查周期类型详情  19341
      OmsCycleType omsCycleType = null;
    if(calculateContentAmountComRespDto !=null){
          QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:171977_1_19341
if(reqDto!=null){
      queryCycleTypeDetailReq.setCustomCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:375643_1_19341
    }
if(calculateContentAmountComRespDto!=null){
      queryCycleTypeDetailReq.setCustomCycleTypeNum(calculateContentAmountComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:375644_1_19341
    }
  
    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCustomCycleTypeCode(),"D3-4新增周期类型(公共)-3-4-01查周期类型详情-基于标准周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getCustomCycleTypeNum(),"D3-4新增周期类型(公共)-3-4-01查周期类型详情-基于标准周期类型的数量不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3-4新增周期类型(公共)-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq);
      
      
      omsCycleType_1 = omsCycleType;
           }
if((omsCycleType == null )) {
        //if(3-4-01查周期类型详情（看父周期类型是否存在）.出参 值等于空 )  19342
        
OmsCycleType omsCycleType_2 = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq_1=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:375662_1_19346
if(reqDto!=null){
      queryCycleTypeDetailReq_1.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:375663_1_19346
    }
  
    /*3-4-01查子周期周期类型名称[1881]   */
    Assert.isNull(queryCycleTypeDetailReq_1.getCycleTypeCode(),"D3-4新增周期类型(公共)-3-4-01查子周期周期类型名称-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq_1.getSubjectLifeCycle(),"D3-4新增周期类型(公共)-3-4-01查子周期周期类型名称-主体生命周期不能为空",false);
      omsCycleType_2 = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq_1);
      
      
      
GenerateTimeCycleEtcSemanticInstanceComRespDto generateTimeCycleEtcSemanticInstanceComRespDto = null;
    if(calculateContentAmountComRespDto !=null){
          GenerateTimeCycleEtcSemanticInstanceComReqDto generateTimeCycleEtcSemanticInstanceComReqDto=new GenerateTimeCycleEtcSemanticInstanceComReqDto();
  generateTimeCycleEtcSemanticInstanceComReqDto.setTemplateSemanticEngineCode("CREATE_CYCLE_TYPE_CODE");//CUSTOM_CONVENTION//sourceId:399319_1_20375
if(calculateContentAmountComRespDto!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto.setAcount(calculateContentAmountComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:399320_1_20375
    }
if(reqDto!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:399321_1_20375
    }
  
    /*D2生成不规则周期类型标识[5030]   */
    Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getTemplateSemanticEngineCode(),"D3-4新增周期类型(公共)-D2生成不规则周期类型标识-模板引擎标识不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getAcount(),"D3-4新增周期类型(公共)-D2生成不规则周期类型标识-数量不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getCycleTypeCode(),"D3-4新增周期类型(公共)-D2生成不规则周期类型标识-周期类型标识不能为空",false);
      generateTimeCycleEtcSemanticInstanceComRespDto = fwCompTemplateEngineClient.generateTimeCycleEtcSemanticInstanceCom(generateTimeCycleEtcSemanticInstanceComReqDto).getData();



           }
GenerateTimeCycleEtcSemanticInstanceComRespDto generateTimeCycleEtcSemanticInstanceComRespDto_2 = null;
    if(calculateContentAmountComRespDto !=null&&omsCycleType_2 !=null){
          GenerateTimeCycleEtcSemanticInstanceComReqDto generateTimeCycleEtcSemanticInstanceComReqDto_1=new GenerateTimeCycleEtcSemanticInstanceComReqDto();
  generateTimeCycleEtcSemanticInstanceComReqDto_1.setTemplateSemanticEngineCode("CREATE_IRREGULAR_CYCLE_TYPE_NAME");//CUSTOM_CONVENTION//sourceId:399297_1_20374
if(calculateContentAmountComRespDto!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto_1.setAcount(calculateContentAmountComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:399306_1_20374
    }
if(omsCycleType_2!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto_1.setCycleTypeName(omsCycleType_2.getCycleTypeName());//SimpleFieldAssign//sourceId:399307_1_20374
    }

    /*D2生成不规则周期类型名称[5030]   */
    Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_1.getTemplateSemanticEngineCode(),"D3-4新增周期类型(公共)-D2生成不规则周期类型名称-模板引擎标识不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_1.getAcount(),"D3-4新增周期类型(公共)-D2生成不规则周期类型名称-数量不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_1.getCycleTypeName(),"D3-4新增周期类型(公共)-D2生成不规则周期类型名称-周期类型名称不能为空",false);
      generateTimeCycleEtcSemanticInstanceComRespDto_2 = fwCompTemplateEngineClient.generateTimeCycleEtcSemanticInstanceCom(generateTimeCycleEtcSemanticInstanceComReqDto_1).getData();
      
      
      
           }
String string = null;
    if(omsCycleType_2 !=null&&generateTimeCycleEtcSemanticInstanceComRespDto !=null&&generateTimeCycleEtcSemanticInstanceComRespDto_2 !=null&&calculateContentAmountComRespDto !=null){
          OmsCycleType omsCycleType_4=new OmsCycleType();
  omsCycleType_4.setCycleTypeStandard("CUSTOM_STANDARD");//sourceId:410675_1_20594
omsCycleType_4.setIsWorkCycleType("TRUE");//sourceId:410676_1_20594
omsCycleType_4.setCycleTypeUsage("WORK");//sourceId:410677_1_20594
omsCycleType_4.setOrderNumber(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:413388_1_20594
omsCycleType_4.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:411243_1_20594
if(omsCycleType_2!=null){
      omsCycleType_4.setCycleSystemCode(omsCycleType_2.getCycleSystemCode());//SimpleFieldAssign//sourceId:410671_1_20594
omsCycleType_4.setOperationInductionId(omsCycleType_2.getOperationInductionId());//SimpleFieldAssign//sourceId:410681_1_20594
omsCycleType_4.setCreateInductionId(omsCycleType_2.getOperationInductionId());//SimpleFieldAssign//sourceId:410682_1_20594
omsCycleType_4.setReleaseInductionId(omsCycleType_2.getOperationInductionId());//SimpleFieldAssign//sourceId:413387_1_20594
omsCycleType_4.setSpaceId(omsCycleType_2.getSpaceId());//SimpleFieldAssign//sourceId:410683_1_20594
omsCycleType_4.setAppId(omsCycleType_2.getAppId());//SimpleFieldAssign//sourceId:410684_1_20594
    }
if(generateTimeCycleEtcSemanticInstanceComRespDto!=null){
      omsCycleType_4.setCycleTypeCode(generateTimeCycleEtcSemanticInstanceComRespDto.getObjectName());//SimpleFieldAssign//sourceId:410672_1_20594
    }
if(generateTimeCycleEtcSemanticInstanceComRespDto_2!=null){
      omsCycleType_4.setCycleTypeName(generateTimeCycleEtcSemanticInstanceComRespDto_2.getObjectName());//SimpleFieldAssign//sourceId:410674_1_20594
    }
if(reqDto!=null){
      omsCycleType_4.setCustomCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:410679_1_20594
    }
if(calculateContentAmountComRespDto!=null){
      omsCycleType_4.setCustomCycleTypeNum(calculateContentAmountComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:410680_1_20594
    }
  
    /*3-4-01新增自定义周期类型[5067]   */
    Assert.isNull(omsCycleType_4.getCycleSystemCode(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-周期体系类型标识不能为空",false);
Assert.isNull(omsCycleType_4.getCycleTypeCode(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-周期类型标识不能为空",false);
Assert.isNull(omsCycleType_4.getCycleTypeName(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-周期类型名称不能为空",false);
Assert.isNull(omsCycleType_4.getCycleTypeStandard(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-周期类型标准化不能为空",false);
Assert.isNull(omsCycleType_4.getIsWorkCycleType(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-是否工作周期不能为空",false);
Assert.isNull(omsCycleType_4.getCycleTypeUsage(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-周期类型用途不能为空",false);
Assert.isNull(omsCycleType_4.getCustomCycleTypeCode(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-基于标准周期类型标识不能为空",false);
Assert.isNull(omsCycleType_4.getCustomCycleTypeNum(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-基于标准周期类型的数量不能为空",false);
Assert.isNull(omsCycleType_4.getOrderNumber(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-排序不能为空",false);
Assert.isNull(omsCycleType_4.getSubjectLifeCycle(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-主体生命周期不能为空",false);
Assert.isNull(omsCycleType_4.getOperationInductionId(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-操作人就职记录ID不能为空",false);
Assert.isNull(omsCycleType_4.getCreateInductionId(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-创建人就职记录ID不能为空",false);
Assert.isNull(omsCycleType_4.getReleaseInductionId(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-发布人就职记录ID不能为空",false);
Assert.isNull(omsCycleType_4.getSpaceId(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-创建于空间ID不能为空",false);
Assert.isNull(omsCycleType_4.getAppId(),"D3-4新增周期类型(公共)-3-4-01新增自定义周期类型-创建于联盟应用ID不能为空",false);
      string = mOmsCycleTypeService.addCustomCycleType(omsCycleType_4);
      
      
      
           }
OmsCycleType omsCycleType_5 = null;
    if(string !=null){
          QueryCycleTypeDetailReq queryCycleTypeDetailReq_2=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:172060_1_19348
if(string!=null){
      queryCycleTypeDetailReq_2.setCycleTypeId(string);//SimpleFieldAssign//sourceId:172044_1_19348
    }
  
    /*3-4-01查新增周期类型[1881]   */
    Assert.isNull(queryCycleTypeDetailReq_2.getCycleTypeId(),"D3-4新增周期类型(公共)-3-4-01查新增周期类型-周期类型ID不能为空",false);
Assert.isNull(queryCycleTypeDetailReq_2.getSubjectLifeCycle(),"D3-4新增周期类型(公共)-3-4-01查新增周期类型-主体生命周期不能为空",false);
      omsCycleType_5 = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq_2);
      Assert.isTrue(omsCycleType_5== null||  omsCycleType_5.getCycleTypeId() ==null,"找不到数据，系统异常",false);
      
      omsCycleType_6 = omsCycleType_5;
           }
//processBranchName:正常结束 ,processBranchId:19349
        
      }
AddCycleTypeComRespDto retData = new AddCycleTypeComRespDto();
  if(omsCycleType_1!=null){
      retData.setCycleTypeId(omsCycleType_1.getCycleTypeId());//SimpleFieldAssign//sourceId:172062_1
retData.setCycleTypeCode(omsCycleType_1.getCycleTypeCode());//SimpleFieldAssign//sourceId:172063_1
retData.setCycleTypeName(omsCycleType_1.getCycleTypeName());//SimpleFieldAssign//sourceId:172064_1
retData.setCycleTypeStandard(omsCycleType_1.getCycleTypeStandard());//SimpleFieldAssign//sourceId:172065_1
retData.setCycleSystemCode(omsCycleType_1.getCycleSystemCode());//SimpleFieldAssign//sourceId:172066_1
    }
if(omsCycleType_6!=null){
      retData.setCycleTypeId(omsCycleType_6.getCycleTypeId());//SimpleFieldAssign//sourceId:172062_1
retData.setCycleTypeCode(omsCycleType_6.getCycleTypeCode());//SimpleFieldAssign//sourceId:172063_1
retData.setCycleTypeName(omsCycleType_6.getCycleTypeName());//SimpleFieldAssign//sourceId:172064_1
retData.setCycleTypeStandard(omsCycleType_6.getCycleTypeStandard());//SimpleFieldAssign//sourceId:172065_1
retData.setCycleSystemCode(omsCycleType_6.getCycleSystemCode());//SimpleFieldAssign//sourceId:172066_1
    }
  

  
  
return retData;
  }
/**
   * D3生成周期排序服务(公共)[3545]
   * gen by moon at 11/9/2022, 9:08:11 PM
   */
  @Trace(operationName = "D3生成周期排序服务(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public GenerateOrderNumberComRespDto generateOrderNumberCom(GenerateOrderNumberComReqDto reqDto){
    
      
      Long getDateTimeOrderNumRes_1 = null;
//步骤0: M3生成周期排序(特殊方法) - generateCycleOrderNum
     //ModelCode: getDateTimeOrderNum
        Long  getDateTimeOrderNumRes=CommonFunctionHelper.getDateTimeOrderNum(reqDto.getCycleStartTime(),reqDto.getCycleEndTime());
        getDateTimeOrderNumRes_1 = getDateTimeOrderNumRes; 

    
GenerateOrderNumberComRespDto retData = new GenerateOrderNumberComRespDto();
  if(getDateTimeOrderNumRes_1!=null){
      retData.setOrderNumber(getDateTimeOrderNumRes);//SimpleFieldAssign//sourceId:155902_1
    }
  

  
  
return retData;
  }
/**
   * D3-4新增内容周期(公共)[3544]
   * gen by moon at 5/16/2023, 4:47:52 PM
   */
  @Trace(operationName = "D3-4新增内容周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddContentCycleComRespDto addContentCycleCom(AddContentCycleComReqDto reqDto){
    
      
      OmsCycle omsCycle_4 =null;
if((reqDto!= null&&  reqDto.getAddCycleBusinessScene() !=null && reqDto.getAddCycleBusinessScene().equals("ADD_TARGET_CONT")&&reqDto!= null&& reqDto.getCycleTypeCode() != null &&!(reqDto!= null&&  reqDto.getCycleTypeCode() !=null && reqDto.getCycleTypeCode().equals("IRREGULAR_CYCLE"))&&reqDto!= null&& reqDto.getFatherCycleType() != null )) {
        //if((D3-4新增内容周期(公共).新增周期业务场景 等于 新增目标内容 and D3-4新增内容周期(公共).周期类型标识 值不等于空  and D3-4新增内容周期(公共).周期类型标识 不等于 不规则周期 and D3-4新增内容周期(公共).父周期周期类型 值不等于空 ))  19263
        
JudgeCycleTypeIsPlatformComRespDto judgeCycleTypeIsPlatformComRespDto = null;
    JudgeCycleTypeIsPlatformComReqDto judgeCycleTypeIsPlatformComReqDto=new JudgeCycleTypeIsPlatformComReqDto();
  if(reqDto!=null){
      judgeCycleTypeIsPlatformComReqDto.setEndValue(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:384541_1_21353
    }

    /*D3判断周期类型是否平台(公共)[4972]   */
    Assert.isNull(judgeCycleTypeIsPlatformComReqDto.getEndValue(),"D3-4新增内容周期(公共)-D3判断周期类型是否平台(公共)-周期类型值不能为空",false);
      judgeCycleTypeIsPlatformComRespDto = targetCycleService.judgeCycleTypeIsPlatformCom(judgeCycleTypeIsPlatformComReqDto)/*vcase invoke isSameApp*/;



OmsCycle omsCycle = null;
    if(judgeCycleTypeIsPlatformComRespDto !=null){
          QueryCycleDetailReq queryCycleDetailReq=new QueryCycleDetailReq();
  queryCycleDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:339256_1_19271
if(reqDto!=null){
      queryCycleDetailReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:339274_1_19271
queryCycleDetailReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:339276_1_19271
    }
if(judgeCycleTypeIsPlatformComRespDto!=null){
      queryCycleDetailReq.setPlatformData(judgeCycleTypeIsPlatformComRespDto.getPlatformData());//SimpleFieldAssign//sourceId:426977_1_19271
queryCycleDetailReq.setSpaceId(judgeCycleTypeIsPlatformComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:426978_1_19271
    }

    /*3-4-04查询开始子周期[2004]   */
    Assert.isNull(queryCycleDetailReq.getCycleStartTime(),"D3-4新增内容周期(公共)-3-4-04查询开始子周期-周期开始时间不能为空",false);
Assert.isNull(queryCycleDetailReq.getCycleTypeCode(),"D3-4新增内容周期(公共)-3-4-04查询开始子周期-周期类型标识不能为空",false);
Assert.isNull(queryCycleDetailReq.getPlatformData(),"D3-4新增内容周期(公共)-3-4-04查询开始子周期-是否是平台不能为空",false);
Assert.isNull(queryCycleDetailReq.getSubjectLifeCycle(),"D3-4新增内容周期(公共)-3-4-04查询开始子周期-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryCycleDetail(queryCycleDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      
      

           }
OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:375480_1_19265
if(reqDto!=null){
      queryCycleTypeDetailReq.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:375481_1_19265
    }
  
    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeCode(),"D3-4新增内容周期(公共)-3-4-01查周期类型详情-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3-4新增内容周期(公共)-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
GenerateOrderNumberComRespDto generateOrderNumberComRespDto = null;
    GenerateOrderNumberComReqDto generateOrderNumberComReqDto=new GenerateOrderNumberComReqDto();
  if(reqDto!=null){
      generateOrderNumberComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:155903_1_19267
generateOrderNumberComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:155904_1_19267
    }
  
    /*D3生成周期排序服务(公共)[3545]   */
    Assert.isNull(generateOrderNumberComReqDto.getCycleStartTime(),"D3-4新增内容周期(公共)-D3生成周期排序服务(公共)-周期开始时间不能为空",false);
Assert.isNull(generateOrderNumberComReqDto.getCycleEndTime(),"D3-4新增内容周期(公共)-D3生成周期排序服务(公共)-周期结束时间不能为空",false);
      generateOrderNumberComRespDto = generateOrderNumberCom(generateOrderNumberComReqDto)/*vcase invoke 同服务,同domain*/;
      
      

GenerateTimeCycleEtcSemanticInstanceComRespDto generateTimeCycleEtcSemanticInstanceComRespDto = null;
    GenerateTimeCycleEtcSemanticInstanceComReqDto generateTimeCycleEtcSemanticInstanceComReqDto=new GenerateTimeCycleEtcSemanticInstanceComReqDto();
  generateTimeCycleEtcSemanticInstanceComReqDto.setTemplateSemanticEngineCode("GENERATE_IRREGULAR_CYCLE_NAME");//CUSTOM_CONVENTION//sourceId:396167_1_20369
if(reqDto!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:453505_1_20369
generateTimeCycleEtcSemanticInstanceComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:453506_1_20369
    }

    /*D2生成周期名称（公共）[5030]   */
    Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getTemplateSemanticEngineCode(),"D3-4新增内容周期(公共)-D2生成周期名称（公共）-模板引擎标识不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getCycleStartTime(),"D3-4新增内容周期(公共)-D2生成周期名称（公共）-周期开始时间不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getCycleEndTime(),"D3-4新增内容周期(公共)-D2生成周期名称（公共）-周期结束时间不能为空",false);
      generateTimeCycleEtcSemanticInstanceComRespDto = fwCompTemplateEngineClient.generateTimeCycleEtcSemanticInstanceCom(generateTimeCycleEtcSemanticInstanceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



String string = null;
    if(generateTimeCycleEtcSemanticInstanceComRespDto !=null&&omsCycleType !=null&&judgeCycleTypeIsPlatformComRespDto !=null&&generateOrderNumberComRespDto !=null&&omsCycle !=null){
          OmsCycle omsCycle_2=new OmsCycle();
  omsCycle_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:411974_1_20659
omsCycle_2.setIsArchive("FALSE");//sourceId:413352_1_20659
if(generateTimeCycleEtcSemanticInstanceComRespDto!=null){
      omsCycle_2.setCycleStandardName(generateTimeCycleEtcSemanticInstanceComRespDto.getObjectName());//SimpleFieldAssign//sourceId:411962_1_20659
    }
if(reqDto!=null){
      omsCycle_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:411963_1_20659
omsCycle_2.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:411964_1_20659
omsCycle_2.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:411965_1_20659
    }
if(omsCycleType!=null){
      omsCycle_2.setCycleTypeName(omsCycleType.getCycleTypeName());//SimpleFieldAssign//sourceId:411966_1_20659
omsCycle_2.setCycleSystemCode(omsCycleType.getCycleSystemCode());//SimpleFieldAssign//sourceId:411968_1_20659
omsCycle_2.setCycleTypeStandard(omsCycleType.getCycleTypeStandard());//SimpleFieldAssign//sourceId:411970_1_20659
    }
if(judgeCycleTypeIsPlatformComRespDto!=null){
      omsCycle_2.setPlatformData(judgeCycleTypeIsPlatformComRespDto.getPlatformData());//SimpleFieldAssign//sourceId:411972_1_20659
    }
if(generateOrderNumberComRespDto!=null){
      omsCycle_2.setOrderNumber(generateOrderNumberComRespDto.getOrderNumber());//SimpleFieldAssign//sourceId:411973_1_20659
    }
if(omsCycle!=null){
      omsCycle_2.setOperationInductionId(omsCycle.getOperationInductionId());//SimpleFieldAssign//sourceId:411976_1_20659
omsCycle_2.setCreateInductionId(omsCycle.getOperationInductionId());//SimpleFieldAssign//sourceId:411977_1_20659
omsCycle_2.setReleaseInductionId(omsCycle.getOperationInductionId());//SimpleFieldAssign//sourceId:414198_1_20659
omsCycle_2.setSpaceId(omsCycle.getSpaceId());//SimpleFieldAssign//sourceId:411982_1_20659
omsCycle_2.setAppId(omsCycle.getAppId());//SimpleFieldAssign//sourceId:411983_1_20659
    }
  
    /*3-4-04新增综合周期[5071]   */
    Assert.isNull(omsCycle_2.getCycleStandardName(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期名称不能为空",false);
Assert.isNull(omsCycle_2.getCycleStartTime(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期开始时间不能为空",false);
Assert.isNull(omsCycle_2.getCycleEndTime(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期结束时间不能为空",false);
Assert.isNull(omsCycle_2.getCycleTypeCode(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期类型标识不能为空",false);
Assert.isNull(omsCycle_2.getCycleTypeName(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期类型名称不能为空",false);
Assert.isNull(omsCycle_2.getCycleSystemCode(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期体系类型标识不能为空",false);
Assert.isNull(omsCycle_2.getCycleTypeStandard(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-冗余周期类型标准化不能为空",false);
Assert.isNull(omsCycle_2.getPlatformData(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-是否是平台不能为空",false);
Assert.isNull(omsCycle_2.getOrderNumber(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-排序不能为空",false);
Assert.isNull(omsCycle_2.getSubjectLifeCycle(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-主体生命周期不能为空",false);
Assert.isNull(omsCycle_2.getIsArchive(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-是否存档不能为空",false);
Assert.isNull(omsCycle_2.getOperationInductionId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-操作人就职记录ID不能为空",false);
Assert.isNull(omsCycle_2.getCreateInductionId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-创建人就职记录ID不能为空",false);
Assert.isNull(omsCycle_2.getReleaseInductionId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-发布人就职记录ID不能为空",false);
Assert.isNull(omsCycle_2.getSpaceId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-创建于空间ID不能为空",false);
Assert.isNull(omsCycle_2.getAppId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-创建于联盟应用ID不能为空",false);
      string = mOmsCycleService.addSyntheticalCycle(omsCycle_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
OmsCycle omsCycle_3 = null;
    if(string !=null){
          QueryCycleDetailReq queryCycleDetailReq_1=new QueryCycleDetailReq();
  if(string!=null){
      queryCycleDetailReq_1.setCycleId(string);//SimpleFieldAssign//sourceId:155949_1_19284
    }
  
    /*3-4-04查询周期详情[2004]   */
    Assert.isNull(queryCycleDetailReq_1.getCycleId(),"D3-4新增内容周期(公共)-3-4-04查询周期详情-周期ID不能为空",false);
      omsCycle_3 = mOmsCycleService.queryCycleDetail(queryCycleDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsCycle_4 = omsCycle_3;
           }
      }
else if((reqDto!= null&&  reqDto.getAddCycleBusinessScene() !=null && reqDto.getAddCycleBusinessScene().equals("ADD_EVA_TEMP")&&reqDto!= null&& reqDto.getMidCycleType() != null &&reqDto!= null&& reqDto.getMidSubcycleQuantity() != null )){
       //elseif((D3-4新增内容周期(公共).新增周期业务场景 等于 新增评价模板 and D3-4新增内容周期(公共).中期周期类型 值不等于空  and D3-4新增内容周期(公共).中期子周期数量 值不等于空 ))  19273
      
JudgeCycleTypeIsPlatformComRespDto judgeCycleTypeIsPlatformComRespDto_2 = null;
    JudgeCycleTypeIsPlatformComReqDto judgeCycleTypeIsPlatformComReqDto_1=new JudgeCycleTypeIsPlatformComReqDto();
  if(reqDto!=null){
      judgeCycleTypeIsPlatformComReqDto_1.setEndValue(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:384541_1_21354
    }

    /*D3判断周期类型是否平台(公共)[4972]   */
    Assert.isNull(judgeCycleTypeIsPlatformComReqDto_1.getEndValue(),"D3-4新增内容周期(公共)-D3判断周期类型是否平台(公共)-周期类型值不能为空",false);
      judgeCycleTypeIsPlatformComRespDto_2 = targetCycleService.judgeCycleTypeIsPlatformCom(judgeCycleTypeIsPlatformComReqDto_1)/*vcase invoke isSameApp*/;



List<OmsCycle> listOmsCycle =new ArrayList<>();
    if(judgeCycleTypeIsPlatformComRespDto_2 !=null){
          QueryCycleListReq queryCycleListReq=new QueryCycleListReq();
  queryCycleListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:426974_1_19291
if(reqDto!=null){
      queryCycleListReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:426970_1_19291
queryCycleListReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:426971_1_19291
queryCycleListReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:426972_1_19291
    }
if(judgeCycleTypeIsPlatformComRespDto_2!=null){
      queryCycleListReq.setPlatformData(judgeCycleTypeIsPlatformComRespDto_2.getPlatformData());//SimpleFieldAssign//sourceId:426973_1_19291
queryCycleListReq.setSpaceId(judgeCycleTypeIsPlatformComRespDto_2.getSpaceId());//SimpleFieldAssign//sourceId:426975_1_19291
    }
  
    /*3-4-04查询用于被评对象目标周期的周期列表[2003]   */
    Assert.isNull(queryCycleListReq.getCycleStartTime(),"D3-4新增内容周期(公共)-3-4-04查询用于被评对象目标周期的周期列表-周期开始时间不能为空",false);
Assert.isNull(queryCycleListReq.getCycleEndTime(),"D3-4新增内容周期(公共)-3-4-04查询用于被评对象目标周期的周期列表-周期结束时间不能为空",false);
Assert.isNull(queryCycleListReq.getCycleTypeCode(),"D3-4新增内容周期(公共)-3-4-04查询用于被评对象目标周期的周期列表-周期类型标识不能为空",false);
Assert.isNull(queryCycleListReq.getPlatformData(),"D3-4新增内容周期(公共)-3-4-04查询用于被评对象目标周期的周期列表-是否是平台不能为空",false);
Assert.isNull(queryCycleListReq.getSubjectLifeCycle(),"D3-4新增内容周期(公共)-3-4-04查询用于被评对象目标周期的周期列表-主体生命周期不能为空",false);
      listOmsCycle = mOmsCycleService.queryCycleList(queryCycleListReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
//ModelCode: getSpecRecInSortedDataList
        ObtainGainSortDataSetAssignCycleRespDto getSpecRecInSortedDataListRes = null;
    if(listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)&& listOmsCycle.size()>0 ){
          ObtainGainSortDataSetAssignCycleReqDto getSpecRecInSortedDataListReq=new ObtainGainSortDataSetAssignCycleReqDto();
  if(reqDto!=null){
      getSpecRecInSortedDataListReq.setOutputNum(reqDto.getMidSubcycleQuantity());//SimpleFieldAssign//sourceId:375531_1_19292
    }
if(listOmsCycle!= null&& !CollectionUtil.isEmpty(listOmsCycle)&&  listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)){
      getSpecRecInSortedDataListReq.setCycleList(listOmsCycle.stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:375529_1_19292
    }
  
    /*M3获取已排序数据集中的指定周期（特殊方法）[4828]  入参数据集（子周期列表）+数量N。
业务场景：获取子周期列表中中期的结束时间。既已排序数据集的第N条数据记录 */
    Assert.isNull(getSpecRecInSortedDataListReq.getOutputNum(),"D3-4新增内容周期(公共)-M3获取已排序数据集中的指定周期（特殊方法）-传输数值（整数型）不能为空",false);
      getSpecRecInSortedDataListRes = nbCycleType.obtainGainSortDataSetAssignCycle(getSpecRecInSortedDataListReq);
      
      
      
           }
OmsCycle omsCycle_5 = null;
    if(judgeCycleTypeIsPlatformComRespDto_2 !=null){
          QueryCycleDetailReq queryCycleDetailReq_2=new QueryCycleDetailReq();
  queryCycleDetailReq_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:339256_1_19293
if(reqDto!=null){
      queryCycleDetailReq_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:339274_1_19293
queryCycleDetailReq_2.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:339276_1_19293
    }
if(judgeCycleTypeIsPlatformComRespDto_2!=null){
      queryCycleDetailReq_2.setPlatformData(judgeCycleTypeIsPlatformComRespDto_2.getPlatformData());//SimpleFieldAssign//sourceId:426977_1_19293
queryCycleDetailReq_2.setSpaceId(judgeCycleTypeIsPlatformComRespDto_2.getSpaceId());//SimpleFieldAssign//sourceId:426978_1_19293
    }

    /*3-4-04查询开始子周期[2004]   */
    Assert.isNull(queryCycleDetailReq_2.getCycleStartTime(),"D3-4新增内容周期(公共)-3-4-04查询开始子周期-周期开始时间不能为空",false);
Assert.isNull(queryCycleDetailReq_2.getCycleTypeCode(),"D3-4新增内容周期(公共)-3-4-04查询开始子周期-周期类型标识不能为空",false);
Assert.isNull(queryCycleDetailReq_2.getPlatformData(),"D3-4新增内容周期(公共)-3-4-04查询开始子周期-是否是平台不能为空",false);
Assert.isNull(queryCycleDetailReq_2.getSubjectLifeCycle(),"D3-4新增内容周期(公共)-3-4-04查询开始子周期-主体生命周期不能为空",false);
      omsCycle_5 = mOmsCycleService.queryCycleDetail(queryCycleDetailReq_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
OmsCycleType omsCycleType_2 = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq_1=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:375480_1_19294
if(reqDto!=null){
      queryCycleTypeDetailReq_1.setCycleTypeCode(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:375481_1_19294
    }
  
    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq_1.getCycleTypeCode(),"D3-4新增内容周期(公共)-3-4-01查周期类型详情-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq_1.getSubjectLifeCycle(),"D3-4新增内容周期(公共)-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType_2 = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
GenerateOrderNumberComRespDto generateOrderNumberComRespDto_2 = null;
    GenerateOrderNumberComReqDto generateOrderNumberComReqDto_1=new GenerateOrderNumberComReqDto();
  if(reqDto!=null){
      generateOrderNumberComReqDto_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:155903_1_19296
    }
if(getSpecRecInSortedDataListRes!=null){
      generateOrderNumberComReqDto_1.setCycleEndTime(getSpecRecInSortedDataListRes.getCycleEndTime());//SimpleFieldAssign//sourceId:155904_1_19296
    }
  
    /*D3生成周期排序服务(公共)[3545]   */
    Assert.isNull(generateOrderNumberComReqDto_1.getCycleStartTime(),"D3-4新增内容周期(公共)-D3生成周期排序服务(公共)-周期开始时间不能为空",false);
Assert.isNull(generateOrderNumberComReqDto_1.getCycleEndTime(),"D3-4新增内容周期(公共)-D3生成周期排序服务(公共)-周期结束时间不能为空",false);
      generateOrderNumberComRespDto_2 = generateOrderNumberCom(generateOrderNumberComReqDto_1)/*vcase invoke 同服务,同domain*/;
      
      

GenerateTimeCycleEtcSemanticInstanceComRespDto generateTimeCycleEtcSemanticInstanceComRespDto_2 = null;
    GenerateTimeCycleEtcSemanticInstanceComReqDto generateTimeCycleEtcSemanticInstanceComReqDto_1=new GenerateTimeCycleEtcSemanticInstanceComReqDto();
  generateTimeCycleEtcSemanticInstanceComReqDto_1.setTemplateSemanticEngineCode("GENERATE_IRREGULAR_CYCLE_NAME");//CUSTOM_CONVENTION//sourceId:396167_1_20368
if(reqDto!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:453505_1_20368
    }
if(getSpecRecInSortedDataListRes!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto_1.setCycleEndTime(getSpecRecInSortedDataListRes.getCycleEndTime());//SimpleFieldAssign//sourceId:453506_1_20368
    }
  
    /*D2生成周期名称（公共）[5030]   */
    Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_1.getTemplateSemanticEngineCode(),"D3-4新增内容周期(公共)-D2生成周期名称（公共）-模板引擎标识不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_1.getCycleStartTime(),"D3-4新增内容周期(公共)-D2生成周期名称（公共）-周期开始时间不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_1.getCycleEndTime(),"D3-4新增内容周期(公共)-D2生成周期名称（公共）-周期结束时间不能为空",false);
      generateTimeCycleEtcSemanticInstanceComRespDto_2 = fwCompTemplateEngineClient.generateTimeCycleEtcSemanticInstanceCom(generateTimeCycleEtcSemanticInstanceComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;
      
      

String string_2 = null;
    if(generateTimeCycleEtcSemanticInstanceComRespDto_2 !=null&&omsCycleType_2 !=null&&judgeCycleTypeIsPlatformComRespDto_2 !=null&&generateOrderNumberComRespDto_2 !=null&&omsCycle_5 !=null){
          OmsCycle omsCycle_6=new OmsCycle();
  omsCycle_6.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:411974_1_20666
omsCycle_6.setIsArchive("FALSE");//sourceId:413352_1_20666
if(generateTimeCycleEtcSemanticInstanceComRespDto_2!=null){
      omsCycle_6.setCycleStandardName(generateTimeCycleEtcSemanticInstanceComRespDto_2.getObjectName());//SimpleFieldAssign//sourceId:411962_1_20666
    }
if(reqDto!=null){
      omsCycle_6.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:411963_1_20666
omsCycle_6.setCycleTypeCode(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:411965_1_20666
    }
if(getSpecRecInSortedDataListRes!=null){
      omsCycle_6.setCycleEndTime(getSpecRecInSortedDataListRes.getCycleEndTime());//SimpleFieldAssign//sourceId:411964_1_20666
    }
if(omsCycleType_2!=null){
      omsCycle_6.setCycleTypeName(omsCycleType_2.getCycleTypeName());//SimpleFieldAssign//sourceId:411966_1_20666
omsCycle_6.setCycleSystemCode(omsCycleType_2.getCycleSystemCode());//SimpleFieldAssign//sourceId:411968_1_20666
omsCycle_6.setCycleTypeStandard(omsCycleType_2.getCycleTypeStandard());//SimpleFieldAssign//sourceId:411970_1_20666
    }
if(judgeCycleTypeIsPlatformComRespDto_2!=null){
      omsCycle_6.setPlatformData(judgeCycleTypeIsPlatformComRespDto_2.getPlatformData());//SimpleFieldAssign//sourceId:411972_1_20666
    }
if(generateOrderNumberComRespDto_2!=null){
      omsCycle_6.setOrderNumber(generateOrderNumberComRespDto_2.getOrderNumber());//SimpleFieldAssign//sourceId:411973_1_20666
    }
if(omsCycle_5!=null){
      omsCycle_6.setOperationInductionId(omsCycle_5.getOperationInductionId());//SimpleFieldAssign//sourceId:411976_1_20666
omsCycle_6.setCreateInductionId(omsCycle_5.getOperationInductionId());//SimpleFieldAssign//sourceId:411977_1_20666
omsCycle_6.setReleaseInductionId(omsCycle_5.getOperationInductionId());//SimpleFieldAssign//sourceId:414198_1_20666
omsCycle_6.setSpaceId(omsCycle_5.getSpaceId());//SimpleFieldAssign//sourceId:411982_1_20666
omsCycle_6.setAppId(omsCycle_5.getAppId());//SimpleFieldAssign//sourceId:411983_1_20666
    }
  
    /*3-4-04新增综合周期[5071]   */
    Assert.isNull(omsCycle_6.getCycleStandardName(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期名称不能为空",false);
Assert.isNull(omsCycle_6.getCycleStartTime(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期开始时间不能为空",false);
Assert.isNull(omsCycle_6.getCycleEndTime(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期结束时间不能为空",false);
Assert.isNull(omsCycle_6.getCycleTypeCode(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期类型标识不能为空",false);
Assert.isNull(omsCycle_6.getCycleTypeName(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期类型名称不能为空",false);
Assert.isNull(omsCycle_6.getCycleSystemCode(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期体系类型标识不能为空",false);
Assert.isNull(omsCycle_6.getCycleTypeStandard(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-冗余周期类型标准化不能为空",false);
Assert.isNull(omsCycle_6.getPlatformData(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-是否是平台不能为空",false);
Assert.isNull(omsCycle_6.getOrderNumber(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-排序不能为空",false);
Assert.isNull(omsCycle_6.getSubjectLifeCycle(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-主体生命周期不能为空",false);
Assert.isNull(omsCycle_6.getIsArchive(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-是否存档不能为空",false);
Assert.isNull(omsCycle_6.getOperationInductionId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-操作人就职记录ID不能为空",false);
Assert.isNull(omsCycle_6.getCreateInductionId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-创建人就职记录ID不能为空",false);
Assert.isNull(omsCycle_6.getReleaseInductionId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-发布人就职记录ID不能为空",false);
Assert.isNull(omsCycle_6.getSpaceId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-创建于空间ID不能为空",false);
Assert.isNull(omsCycle_6.getAppId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-创建于联盟应用ID不能为空",false);
      string_2 = mOmsCycleService.addSyntheticalCycle(omsCycle_6)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
OmsCycle omsCycle_7 = null;
    if(string_2 !=null){
          QueryCycleDetailReq queryCycleDetailReq_3=new QueryCycleDetailReq();
  if(string_2!=null){
      queryCycleDetailReq_3.setCycleId(string_2);//SimpleFieldAssign//sourceId:155949_1_19300
    }
  
    /*3-4-04查询周期详情[2004]   */
    Assert.isNull(queryCycleDetailReq_3.getCycleId(),"D3-4新增内容周期(公共)-3-4-04查询周期详情-周期ID不能为空",false);
      omsCycle_7 = mOmsCycleService.queryCycleDetail(queryCycleDetailReq_3)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsCycle_4 = omsCycle_7;
           }
    }
else if((reqDto!= null&&  reqDto.getAddCycleBusinessScene() !=null && reqDto.getAddCycleBusinessScene().equals("ADD_EVA_TEMP")&&reqDto!= null&&  reqDto.getFatherCycleType() !=null && reqDto.getFatherCycleType().equals("IRREGULAR_CYCLE"))){
       //elseif((D3-4新增内容周期(公共).新增周期业务场景 等于 新增评价模板 and D3-4新增内容周期(公共).父周期周期类型 等于 不规则周期))  19290
      
OmsCycleType omsCycleType_3 = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq_2=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:375480_1_19301
if(reqDto!=null){
      queryCycleTypeDetailReq_2.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:375481_1_19301
    }
  
    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq_2.getCycleTypeCode(),"D3-4新增内容周期(公共)-3-4-01查周期类型详情-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq_2.getSubjectLifeCycle(),"D3-4新增内容周期(公共)-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType_3 = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
GenerateOrderNumberComRespDto generateOrderNumberComRespDto_3 = null;
    GenerateOrderNumberComReqDto generateOrderNumberComReqDto_2=new GenerateOrderNumberComReqDto();
  if(reqDto!=null){
      generateOrderNumberComReqDto_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:155903_1_19303
generateOrderNumberComReqDto_2.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:155904_1_19303
    }
  
    /*D3生成周期排序服务(公共)[3545]   */
    Assert.isNull(generateOrderNumberComReqDto_2.getCycleStartTime(),"D3-4新增内容周期(公共)-D3生成周期排序服务(公共)-周期开始时间不能为空",false);
Assert.isNull(generateOrderNumberComReqDto_2.getCycleEndTime(),"D3-4新增内容周期(公共)-D3生成周期排序服务(公共)-周期结束时间不能为空",false);
      generateOrderNumberComRespDto_3 = generateOrderNumberCom(generateOrderNumberComReqDto_2)/*vcase invoke 同服务,同domain*/;
      
      

GenerateTimeCycleEtcSemanticInstanceComRespDto generateTimeCycleEtcSemanticInstanceComRespDto_3 = null;
    GenerateTimeCycleEtcSemanticInstanceComReqDto generateTimeCycleEtcSemanticInstanceComReqDto_2=new GenerateTimeCycleEtcSemanticInstanceComReqDto();
  generateTimeCycleEtcSemanticInstanceComReqDto_2.setTemplateSemanticEngineCode("GENERATE_IRREGULAR_CYCLE_NAME");//CUSTOM_CONVENTION//sourceId:399261_1_20371
if(reqDto!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:399268_1_20371
generateTimeCycleEtcSemanticInstanceComReqDto_2.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:399269_1_20371
    }

    /*D2生成不规则周期名称(公共)[5030]   */
    Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_2.getTemplateSemanticEngineCode(),"D3-4新增内容周期(公共)-D2生成不规则周期名称(公共)-模板引擎标识不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_2.getCycleStartTime(),"D3-4新增内容周期(公共)-D2生成不规则周期名称(公共)-周期开始时间不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_2.getCycleEndTime(),"D3-4新增内容周期(公共)-D2生成不规则周期名称(公共)-周期结束时间不能为空",false);
      generateTimeCycleEtcSemanticInstanceComRespDto_3 = fwCompTemplateEngineClient.generateTimeCycleEtcSemanticInstanceCom(generateTimeCycleEtcSemanticInstanceComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;



//ModelCode: receptionService
        ImplementAcceptFieldRespDto receptionServiceRes = null;
    ImplementAcceptFieldReqDto receptionServiceReq=new ImplementAcceptFieldReqDto();
  receptionServiceReq.setTureOrFalse("TRUE");//sourceId:944876_1_41776

    /*M3约定：是[6100]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getTureOrFalse(),"D3-4新增内容周期(公共)-M3约定：是-是否不能为空",false);
      receptionServiceRes = nbCycleType.implementAcceptField(receptionServiceReq);



String string_3 = null;
    if(generateTimeCycleEtcSemanticInstanceComRespDto_3 !=null&&omsCycleType_3 !=null&&generateOrderNumberComRespDto_3 !=null){
          OmsCycle omsCycle_8=new OmsCycle();
  omsCycle_8.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:411974_1_20669
omsCycle_8.setIsArchive("FALSE");//sourceId:413352_1_20669
if(generateTimeCycleEtcSemanticInstanceComRespDto_3!=null){
      omsCycle_8.setCycleStandardName(generateTimeCycleEtcSemanticInstanceComRespDto_3.getObjectName());//SimpleFieldAssign//sourceId:411962_1_20669
    }
if(reqDto!=null){
      omsCycle_8.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:411963_1_20669
omsCycle_8.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:411964_1_20669
omsCycle_8.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:411965_1_20669
    }
if(omsCycleType_3!=null){
      omsCycle_8.setCycleTypeName(omsCycleType_3.getCycleTypeName());//SimpleFieldAssign//sourceId:411966_1_20669
omsCycle_8.setCycleSystemCode(omsCycleType_3.getCycleSystemCode());//SimpleFieldAssign//sourceId:411968_1_20669
omsCycle_8.setCycleTypeStandard(omsCycleType_3.getCycleTypeStandard());//SimpleFieldAssign//sourceId:411970_1_20669
omsCycle_8.setOperationInductionId(omsCycleType_3.getOperationInductionId());//SimpleFieldAssign//sourceId:411976_1_20669
omsCycle_8.setCreateInductionId(omsCycleType_3.getOperationInductionId());//SimpleFieldAssign//sourceId:411977_1_20669
omsCycle_8.setReleaseInductionId(omsCycleType_3.getOperationInductionId());//SimpleFieldAssign//sourceId:414198_1_20669
omsCycle_8.setSpaceId(omsCycleType_3.getSpaceId());//SimpleFieldAssign//sourceId:411982_1_20669
omsCycle_8.setAppId(omsCycleType_3.getAppId());//SimpleFieldAssign//sourceId:411983_1_20669
    }
if(receptionServiceRes!=null){
      omsCycle_8.setPlatformData(receptionServiceRes.getTureOrFalse());//SimpleFieldAssign//sourceId:411972_1_20669
    }
if(generateOrderNumberComRespDto_3!=null){
      omsCycle_8.setOrderNumber(generateOrderNumberComRespDto_3.getOrderNumber());//SimpleFieldAssign//sourceId:411973_1_20669
    }
  
    /*3-4-04新增综合周期[5071]   */
    Assert.isNull(omsCycle_8.getCycleStandardName(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期名称不能为空",false);
Assert.isNull(omsCycle_8.getCycleStartTime(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期开始时间不能为空",false);
Assert.isNull(omsCycle_8.getCycleEndTime(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期结束时间不能为空",false);
Assert.isNull(omsCycle_8.getCycleTypeCode(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期类型标识不能为空",false);
Assert.isNull(omsCycle_8.getCycleTypeName(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期类型名称不能为空",false);
Assert.isNull(omsCycle_8.getCycleSystemCode(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-周期体系类型标识不能为空",false);
Assert.isNull(omsCycle_8.getCycleTypeStandard(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-冗余周期类型标准化不能为空",false);
Assert.isNull(omsCycle_8.getPlatformData(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-是否是平台不能为空",false);
Assert.isNull(omsCycle_8.getOrderNumber(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-排序不能为空",false);
Assert.isNull(omsCycle_8.getSubjectLifeCycle(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-主体生命周期不能为空",false);
Assert.isNull(omsCycle_8.getIsArchive(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-是否存档不能为空",false);
Assert.isNull(omsCycle_8.getOperationInductionId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-操作人就职记录ID不能为空",false);
Assert.isNull(omsCycle_8.getCreateInductionId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-创建人就职记录ID不能为空",false);
Assert.isNull(omsCycle_8.getReleaseInductionId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-发布人就职记录ID不能为空",false);
Assert.isNull(omsCycle_8.getSpaceId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-创建于空间ID不能为空",false);
Assert.isNull(omsCycle_8.getAppId(),"D3-4新增内容周期(公共)-3-4-04新增综合周期-创建于联盟应用ID不能为空",false);
      string_3 = mOmsCycleService.addSyntheticalCycle(omsCycle_8)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
OmsCycle omsCycle_9 = null;
    if(string_3 !=null){
          QueryCycleDetailReq queryCycleDetailReq_4=new QueryCycleDetailReq();
  if(string_3!=null){
      queryCycleDetailReq_4.setCycleId(string_3);//SimpleFieldAssign//sourceId:155949_1_19307
    }
  
    /*3-4-04查询周期详情[2004]   */
    Assert.isNull(queryCycleDetailReq_4.getCycleId(),"D3-4新增内容周期(公共)-3-4-04查询周期详情-周期ID不能为空",false);
      omsCycle_9 = mOmsCycleService.queryCycleDetail(queryCycleDetailReq_4)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsCycle_4 = omsCycle_9;
           }
    }
//processBranchName:正常结束 ,processBranchId:19320
        
AddContentCycleComRespDto retData = new AddContentCycleComRespDto();
  if(omsCycle_4!=null){
      retData.setCycleId(omsCycle_4.getCycleId());//SimpleFieldAssign//sourceId:156022_1
retData.setCycleStandardName(omsCycle_4.getCycleStandardName());//SimpleFieldAssign//sourceId:156023_1
retData.setCycleStartTime(omsCycle_4.getCycleStartTime());//SimpleFieldAssign//sourceId:156024_1
retData.setCycleEndTime(omsCycle_4.getCycleEndTime());//SimpleFieldAssign//sourceId:156025_1
retData.setCycleTypeCode(omsCycle_4.getCycleTypeCode());//SimpleFieldAssign//sourceId:156026_1
retData.setCycleTypeInstanceCode(omsCycle_4.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:156027_1
retData.setCycleNumberShortName(omsCycle_4.getCycleNumberShortName());//SimpleFieldAssign//sourceId:156028_1
retData.setOrderNumber(omsCycle_4.getOrderNumber());//SimpleFieldAssign//sourceId:156029_1
    }
  

  
  
return retData;
  }
/**
   * D3-4检查生成不存在的周期(公共)[3130]
   * gen by moon at 6/22/2023, 9:57:16 PM
   */
  @Trace(operationName = "D3-4检查生成不存在的周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public CheckCycleComRespDto checkCycleCom(CheckCycleComReqDto reqDto){
    
      
      OmsCycle omsCycle_1 =null;
AddContentCycleComRespDto addContentCycleComRespDto_1 =null;
OmsCycle omsCycle_3 =null;
if((reqDto!= null&&  reqDto.getAddCycleBusinessScene() !=null && reqDto.getAddCycleBusinessScene().equals("ADD_EVA_TEMP")&&reqDto!= null&&  reqDto.getFatherCycleType() !=null && reqDto.getFatherCycleType().equals("IRREGULAR_CYCLE"))) {
        //if((D3-4检查生成不存在的周期(公共).新增周期业务场景 等于 新增评价模板 and D3-4检查生成不存在的周期(公共).父周期周期类型 等于 不规则周期))  19325

//ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes = null;
    ImplementAccessParameterBizFieldReqDto receptionServiceReq=new ImplementAccessParameterBizFieldReqDto();
  receptionServiceReq.setTureOrFalse("TRUE");//sourceId:952282_1_41929

    /*约定：是[5797]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getTureOrFalse(),"D3-4检查生成不存在的周期(公共)-约定：是-是否不能为空",false);
      receptionServiceRes = nbCycleType.implementAccessParameterBizField(receptionServiceReq);



OmsCycle omsCycle = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:519833_1_41924
if(reqDto!=null){
      queryTimeEqualQueryCycleDetailsDetailReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:519828_1_41924
queryTimeEqualQueryCycleDetailsDetailReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:519829_1_41924
queryTimeEqualQueryCycleDetailsDetailReq.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:952275_1_41924
    }
if(receptionServiceRes!=null){
      queryTimeEqualQueryCycleDetailsDetailReq.setPlatformData(receptionServiceRes.getTureOrFalse());//SimpleFieldAssign//sourceId:519832_1_41924
    }

    /*3-4-04查询时间等于查周期详情详情[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleStartTime(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间等于查周期详情详情-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleEndTime(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间等于查周期详情详情-周期结束时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getPlatformData(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间等于查周期详情详情-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getSubjectLifeCycle(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间等于查周期详情详情-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsCycle_1 = omsCycle;
if((omsCycle == null )) {
        //if(3-4-04查不规则周期（用父周期类型入参）.出参 值等于空 )  19327

AddContentCycleComRespDto addContentCycleComRespDto = null;
    AddContentCycleComReqDto addContentCycleComReqDto=new AddContentCycleComReqDto();
if(reqDto!=null){
      addContentCycleComReqDto.setAddCycleBusinessScene(reqDto.getAddCycleBusinessScene());//SimpleFieldAssign//sourceId:375498_1_41777
addContentCycleComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:156030_1_41777
addContentCycleComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:156031_1_41777
addContentCycleComReqDto.setFatherCycleType(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:375499_1_41777
    }

    /*D3-4新增内容周期(公共)[3544]   */
    Assert.isNull(addContentCycleComReqDto.getAddCycleBusinessScene(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-新增周期业务场景不能为空",false);
Assert.isNull(addContentCycleComReqDto.getCycleStartTime(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-周期开始时间不能为空",false);
Assert.isNull(addContentCycleComReqDto.getCycleEndTime(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-周期结束时间不能为空",false);
Assert.isNull(addContentCycleComReqDto.getFatherCycleType(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-父周期周期类型不能为空",false);
      addContentCycleComRespDto = addContentCycleCom(addContentCycleComReqDto)/*vcase invoke 同服务,同domain*/;


      addContentCycleComRespDto_1 = addContentCycleComRespDto;
    }
      }
else if((reqDto!= null&&  reqDto.getAddCycleBusinessScene() !=null && reqDto.getAddCycleBusinessScene().equals("ADD_EVA_TEMP")&&reqDto!= null&& reqDto.getMidCycleType() != null )){
       //elseif((D3-4检查生成不存在的周期(公共).新增周期业务场景 等于 新增评价模板 and D3-4检查生成不存在的周期(公共).中期周期类型 值不等于空 ))  19330
      
JudgeCycleTypeIsPlatformComRespDto judgeCycleTypeIsPlatformComRespDto = null;
    JudgeCycleTypeIsPlatformComReqDto judgeCycleTypeIsPlatformComReqDto=new JudgeCycleTypeIsPlatformComReqDto();
  if(reqDto!=null){
      judgeCycleTypeIsPlatformComReqDto.setEndValue(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:384572_1_19820
    }

    /*D3判断周期类型是否平台(公共)[4972]   */
    Assert.isNull(judgeCycleTypeIsPlatformComReqDto.getEndValue(),"D3-4检查生成不存在的周期(公共)-D3判断周期类型是否平台(公共)-周期类型值不能为空",false);
      judgeCycleTypeIsPlatformComRespDto = targetCycleService.judgeCycleTypeIsPlatformCom(judgeCycleTypeIsPlatformComReqDto)/*vcase invoke isSameApp*/;



OmsCycle omsCycle_2 = null;
    if(judgeCycleTypeIsPlatformComRespDto !=null){
          QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq_1=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:542067_1_25645
if(reqDto!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:542062_1_25645
queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleTypeCode(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:542064_1_25645
    }
if(judgeCycleTypeIsPlatformComRespDto!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_1.setPlatformData(judgeCycleTypeIsPlatformComRespDto.getPlatformData());//SimpleFieldAssign//sourceId:542066_1_25645
queryTimeEqualQueryCycleDetailsDetailReq_1.setSpaceId(judgeCycleTypeIsPlatformComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:542074_1_25645
    }

    /*3-4-04查询时间周期（中期）[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleStartTime(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间周期（中期）-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleTypeCode(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间周期（中期）-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getPlatformData(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间周期（中期）-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getSubjectLifeCycle(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间周期（中期）-主体生命周期不能为空",false);
      omsCycle_2 = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsCycle_3 = omsCycle_2;
           }
if((omsCycle_2 == null )) {
        //if(3-4-04查询周期详情（用中期入参）.出参 值等于空 )  19332
        
AddContentCycleComRespDto addContentCycleComRespDto_2 = null;
    AddContentCycleComReqDto addContentCycleComReqDto_1=new AddContentCycleComReqDto();
  if(reqDto!=null){
      addContentCycleComReqDto_1.setAddCycleBusinessScene(reqDto.getAddCycleBusinessScene());//SimpleFieldAssign//sourceId:375498_1_19333
addContentCycleComReqDto_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:156030_1_19333
addContentCycleComReqDto_1.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:156031_1_19333
addContentCycleComReqDto_1.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:375482_1_19333
addContentCycleComReqDto_1.setFatherCycleType(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:375499_1_19333
addContentCycleComReqDto_1.setMidCycleType(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:1051524_1_19333
addContentCycleComReqDto_1.setMidSubcycleQuantity(reqDto.getMidSubcycleQuantity());//SimpleFieldAssign//sourceId:1051525_1_19333
    }
  
    /*D3-4新增内容周期(公共)[3544]   */
    Assert.isNull(addContentCycleComReqDto_1.getAddCycleBusinessScene(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-新增周期业务场景不能为空",false);
Assert.isNull(addContentCycleComReqDto_1.getCycleStartTime(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-周期开始时间不能为空",false);
Assert.isNull(addContentCycleComReqDto_1.getCycleEndTime(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-周期结束时间不能为空",false);
Assert.isNull(addContentCycleComReqDto_1.getFatherCycleType(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-父周期周期类型不能为空",false);
      addContentCycleComRespDto_2 = addContentCycleCom(addContentCycleComReqDto_1)/*vcase invoke 同服务,同domain*/;
      
      
      addContentCycleComRespDto_1 = addContentCycleComRespDto_2;
      }
    }
else if((reqDto!= null&&  reqDto.getAddCycleBusinessScene() !=null && reqDto.getAddCycleBusinessScene().equals("ADD_TARGET_CONT"))){
       //elseif(D3-4检查生成不存在的周期(公共).新增周期业务场景 等于 新增目标内容)  19334
      
JudgeCycleTypeIsPlatformComRespDto judgeCycleTypeIsPlatformComRespDto_2 = null;
    JudgeCycleTypeIsPlatformComReqDto judgeCycleTypeIsPlatformComReqDto_1=new JudgeCycleTypeIsPlatformComReqDto();
  if(reqDto!=null){
      judgeCycleTypeIsPlatformComReqDto_1.setEndValue(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:384572_1_20607
    }

    /*D3判断周期类型是否平台(公共)[4972]   */
    Assert.isNull(judgeCycleTypeIsPlatformComReqDto_1.getEndValue(),"D3-4检查生成不存在的周期(公共)-D3判断周期类型是否平台(公共)-周期类型值不能为空",false);
      judgeCycleTypeIsPlatformComRespDto_2 = targetCycleService.judgeCycleTypeIsPlatformCom(judgeCycleTypeIsPlatformComReqDto_1)/*vcase invoke isSameApp*/;



OmsCycle omsCycle_4 = null;
    if(judgeCycleTypeIsPlatformComRespDto_2 !=null){
          QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq_2=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:519833_1_25235
if(reqDto!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:519828_1_25235
queryTimeEqualQueryCycleDetailsDetailReq_2.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:519829_1_25235
    }
if(judgeCycleTypeIsPlatformComRespDto_2!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_2.setPlatformData(judgeCycleTypeIsPlatformComRespDto_2.getPlatformData());//SimpleFieldAssign//sourceId:519832_1_25235
queryTimeEqualQueryCycleDetailsDetailReq_2.setSpaceId(judgeCycleTypeIsPlatformComRespDto_2.getSpaceId());//SimpleFieldAssign//sourceId:519840_1_25235
    }

    /*3-4-04查询时间等于查周期详情详情[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getCycleStartTime(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间等于查周期详情详情-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getCycleEndTime(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间等于查周期详情详情-周期结束时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getPlatformData(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间等于查周期详情详情-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getSubjectLifeCycle(),"D3-4检查生成不存在的周期(公共)-3-4-04查询时间等于查周期详情详情-主体生命周期不能为空",false);
      omsCycle_4 = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsCycle_1 = omsCycle_4;
           }
if((omsCycle_4 == null )) {
        //if(3-4-04查询待确认周期是否存在.出参 值等于空 )  20609

ImplementCheckCycleTypeComRespDto implementCheckCycleTypeComRespDto = null;
    ImplementCheckCycleTypeComReqDto implementCheckCycleTypeComReqDto=new ImplementCheckCycleTypeComReqDto();
  if(reqDto!=null){
      implementCheckCycleTypeComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:410690_1_22476
implementCheckCycleTypeComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:410691_1_22476
implementCheckCycleTypeComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:410692_1_22476
    }

    /*D3-4执行检查周期类型(公共)[3712]   */
    Assert.isNull(implementCheckCycleTypeComReqDto.getCycleStartTime(),"D3-4检查生成不存在的周期(公共)-D3-4执行检查周期类型(公共)-周期开始时间不能为空",false);
Assert.isNull(implementCheckCycleTypeComReqDto.getCycleEndTime(),"D3-4检查生成不存在的周期(公共)-D3-4执行检查周期类型(公共)-周期结束时间不能为空",false);
Assert.isNull(implementCheckCycleTypeComReqDto.getCycleTypeCode(),"D3-4检查生成不存在的周期(公共)-D3-4执行检查周期类型(公共)-周期类型标识不能为空",false);
      implementCheckCycleTypeComRespDto = implementCheckCycleTypeCom(implementCheckCycleTypeComReqDto)/*vcase invoke 同服务,同domain*/;



AddContentCycleComRespDto addContentCycleComRespDto_3 = null;
    if(implementCheckCycleTypeComRespDto !=null){
          AddContentCycleComReqDto addContentCycleComReqDto_2=new AddContentCycleComReqDto();
  if(reqDto!=null){
      addContentCycleComReqDto_2.setAddCycleBusinessScene(reqDto.getAddCycleBusinessScene());//SimpleFieldAssign//sourceId:375498_1_20611
addContentCycleComReqDto_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:156030_1_20611
addContentCycleComReqDto_2.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:156031_1_20611
addContentCycleComReqDto_2.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:375482_1_20611
addContentCycleComReqDto_2.setMidCycleType(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:1051524_1_20611
addContentCycleComReqDto_2.setMidSubcycleQuantity(reqDto.getMidSubcycleQuantity());//SimpleFieldAssign//sourceId:1051525_1_20611
    }
if(implementCheckCycleTypeComRespDto!=null){
      addContentCycleComReqDto_2.setFatherCycleType(implementCheckCycleTypeComRespDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:375499_1_20611
    }
  
    /*D3-4新增内容周期(公共)[3544]   */
    Assert.isNull(addContentCycleComReqDto_2.getAddCycleBusinessScene(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-新增周期业务场景不能为空",false);
Assert.isNull(addContentCycleComReqDto_2.getCycleStartTime(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-周期开始时间不能为空",false);
Assert.isNull(addContentCycleComReqDto_2.getCycleEndTime(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-周期结束时间不能为空",false);
Assert.isNull(addContentCycleComReqDto_2.getFatherCycleType(),"D3-4检查生成不存在的周期(公共)-D3-4新增内容周期(公共)-父周期周期类型不能为空",false);
      addContentCycleComRespDto_3 = addContentCycleCom(addContentCycleComReqDto_2)/*vcase invoke 同服务,同domain*/;
      
      
      addContentCycleComRespDto_1 = addContentCycleComRespDto_3;
           }
      }
    }
CheckCycleComRespDto retData = new CheckCycleComRespDto();
  if(omsCycle_3!=null){
      retData.setCycleId(omsCycle_3.getCycleId());//SimpleFieldAssign//sourceId:410822_1
retData.setCycleStandardName(omsCycle_3.getCycleStandardName());//SimpleFieldAssign//sourceId:410823_1
retData.setCycleStartTime(omsCycle_3.getCycleStartTime());//SimpleFieldAssign//sourceId:410824_1
retData.setCycleEndTime(omsCycle_3.getCycleEndTime());//SimpleFieldAssign//sourceId:410825_1
retData.setCycleTypeCode(omsCycle_3.getCycleTypeCode());//SimpleFieldAssign//sourceId:410826_1
retData.setCycleNumberShortName(omsCycle_3.getCycleNumberShortName());//SimpleFieldAssign//sourceId:410827_1
retData.setCycleTypeInstanceCode(omsCycle_3.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:410828_1
retData.setOrderNumber(omsCycle_3.getOrderNumber());//SimpleFieldAssign//sourceId:410829_1
    }
  if(omsCycle_1!=null){
      retData.setCycleId(omsCycle_1.getCycleId());//SimpleFieldAssign//sourceId:410822_1
retData.setCycleStandardName(omsCycle_1.getCycleStandardName());//SimpleFieldAssign//sourceId:410823_1
retData.setCycleStartTime(omsCycle_1.getCycleStartTime());//SimpleFieldAssign//sourceId:410824_1
retData.setCycleEndTime(omsCycle_1.getCycleEndTime());//SimpleFieldAssign//sourceId:410825_1
retData.setCycleTypeCode(omsCycle_1.getCycleTypeCode());//SimpleFieldAssign//sourceId:410826_1
retData.setCycleNumberShortName(omsCycle_1.getCycleNumberShortName());//SimpleFieldAssign//sourceId:410827_1
retData.setCycleTypeInstanceCode(omsCycle_1.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:410828_1
retData.setOrderNumber(omsCycle_1.getOrderNumber());//SimpleFieldAssign//sourceId:410829_1
    }
if(addContentCycleComRespDto_1!=null){
      retData.setCycleId(addContentCycleComRespDto_1.getCycleId());//SimpleFieldAssign//sourceId:410822_1
retData.setCycleStandardName(addContentCycleComRespDto_1.getCycleStandardName());//SimpleFieldAssign//sourceId:410823_1
retData.setCycleStartTime(addContentCycleComRespDto_1.getCycleStartTime());//SimpleFieldAssign//sourceId:410824_1
retData.setCycleEndTime(addContentCycleComRespDto_1.getCycleEndTime());//SimpleFieldAssign//sourceId:410825_1
retData.setCycleTypeCode(addContentCycleComRespDto_1.getCycleTypeCode());//SimpleFieldAssign//sourceId:410826_1
retData.setCycleNumberShortName(addContentCycleComRespDto_1.getCycleNumberShortName());//SimpleFieldAssign//sourceId:410827_1
retData.setCycleTypeInstanceCode(addContentCycleComRespDto_1.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:410828_1
retData.setOrderNumber(addContentCycleComRespDto_1.getOrderNumber());//SimpleFieldAssign//sourceId:410829_1
    }
  

  
  
return retData;
  }
/**
   * D3-4查周期列表(边界)[2292]
   * gen by moon at 10/20/2022, 7:52:05 PM
   */
  @Trace(operationName = "D3-4查周期列表(边界)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCycleListBorderRespDto queryCycleListBorder(QueryCycleListBorderReqDto reqDto){
    
      
      List<OmsCycle> listOmsCycle_1 =new ArrayList<>();
//步骤0: D3判断周期类型是否平台(公共) - judgeCycleTypeIsPlatformCom
     JudgeCycleTypeIsPlatformComRespDto judgeCycleTypeIsPlatformComRespDto = null;
    JudgeCycleTypeIsPlatformComReqDto judgeCycleTypeIsPlatformComReqDto=new JudgeCycleTypeIsPlatformComReqDto();
  if(reqDto!=null){
      judgeCycleTypeIsPlatformComReqDto.setEndValue(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:385194_1
    }

    /*D3判断周期类型是否平台(公共)[4972]   */
    Assert.isNull(judgeCycleTypeIsPlatformComReqDto.getEndValue(),"D3-4查周期列表(边界)-D3判断周期类型是否平台(公共)-周期类型值不能为空",false);
      judgeCycleTypeIsPlatformComRespDto = targetCycleService.judgeCycleTypeIsPlatformCom(judgeCycleTypeIsPlatformComReqDto);




//步骤1: 3-4-04查询用于被评对象目标周期的周期列表 - queryCycleList
     List<OmsCycle> listOmsCycle =new ArrayList<>();
    if(judgeCycleTypeIsPlatformComRespDto !=null){
          QueryCycleListReq queryCycleListReq=new QueryCycleListReq();
  queryCycleListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:67446_1
if(reqDto!=null){
      queryCycleListReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:69378_1
queryCycleListReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:69379_1
queryCycleListReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:67442_1
queryCycleListReq.setCycleSystemCode(reqDto.getCycleSystemCode());//SimpleFieldAssign//sourceId:69404_1
    }
if(judgeCycleTypeIsPlatformComRespDto!=null){
      queryCycleListReq.setPlatformData(judgeCycleTypeIsPlatformComRespDto.getPlatformData());//SimpleFieldAssign//sourceId:385197_1
queryCycleListReq.setSpaceId(judgeCycleTypeIsPlatformComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:385198_1
    }

    /*3-4-04查询用于被评对象目标周期的周期列表[2003]   */
    Assert.isNull(queryCycleListReq.getPlatformData(),"D3-4查周期列表(边界)-3-4-04查询用于被评对象目标周期的周期列表-是否是平台不能为空",false);
Assert.isNull(queryCycleListReq.getSubjectLifeCycle(),"D3-4查周期列表(边界)-3-4-04查询用于被评对象目标周期的周期列表-主体生命周期不能为空",false);
      listOmsCycle = mOmsCycleService.queryCycleList(queryCycleListReq);
      
      
      listOmsCycle_1 = listOmsCycle;
           }

QueryCycleListBorderRespDto retData = new QueryCycleListBorderRespDto();
  retData.setCycleList(listOmsCycle_1.stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:67457_1
  

  
  
return retData;
  }
/**
   * D3-4查询周期倒序列表[2008]
   * gen by moon at 12/6/2022, 1:37:24 AM
   */
  @Trace(operationName = "D3-4查询周期倒序列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCycleSortListRespDto queryCycleSortList(QueryCycleSortListReqDto reqDto){
    
      
      List<OmsCycle> listOmsCycle_1 =new ArrayList<>();
//步骤0: 3-4-04查询周期倒序列表 - queryCycleSortList
     List<OmsCycle> listOmsCycle =new ArrayList<>();
    QueryCycleSortListReq queryCycleSortListReq=new QueryCycleSortListReq();
  if(reqDto!=null){
      queryCycleSortListReq.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:361657_1
queryCycleSortListReq.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:361658_1
queryCycleSortListReq.setCycleTypeStandard(reqDto.getCycleTypeStandard());//SimpleFieldAssign//sourceId:361659_1
queryCycleSortListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:361660_1
queryCycleSortListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:361661_1
queryCycleSortListReq.setPlatformData(reqDto.getPlatformData());//SimpleFieldAssign//sourceId:488707_1
queryCycleSortListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:488590_1
    }
  
    /*3-4-04查询周期倒序列表[4758]   */
    
      listOmsCycle = mOmsCycleService.queryCycleSortList(queryCycleSortListReq);
      
      
      listOmsCycle_1 = listOmsCycle;
    
QueryCycleSortListRespDto retData = new QueryCycleSortListRespDto();
  retData.setCycleList(listOmsCycle_1.stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:361664_1
  

  
  
return retData;
  }
/**
   * D3-4查询父子中周期列表[4825]
   * gen by moon at 4/28/2023, 4:05:56 PM
   */
  @Trace(operationName = "D3-4查询父子中周期列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryParentSonMidCycleListRespDto queryParentSonMidCycleList(QueryParentSonMidCycleListReqDto reqDto){
    
      
      List<OmsCycle> listOmsCycle_1 =new ArrayList<>();
List<OmsCycle> listOmsCycle_3 =new ArrayList<>();
OmsCycle omsCycle_1 =null;
GenerateTimeCycleEtcSemanticInstanceComRespDto generateTimeCycleEtcSemanticInstanceComRespDto_1 =null;
List<OmsCycle> listOmsCycle_8 =new ArrayList<>();
if((reqDto!= null&&  reqDto.getCycleMode() !=null && reqDto.getCycleMode().equals("FATHER_SON_CYCLE"))) {
        //if(D3-4查询父子中周期列表.周期模式 等于 父子周期)  19222
        
if((reqDto!= null&&  reqDto.getCycleSizeType() !=null && reqDto.getCycleSizeType().equals("SUBCYCLE_EQ_YEAR"))) {
        //if(D3-4查询父子中周期列表.周期大小类型 等于 子周期等于年)  19225
        
List<OmsCycle> listOmsCycle =new ArrayList<>();
    BatchQueryCycleReq batchQueryCycleReq=new BatchQueryCycleReq();
  batchQueryCycleReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:374991_1_19238
if(reqDto!=null){
      batchQueryCycleReq.setCycleList(reqDto.getCycleList());//list-field-assign//sourceId:374989_1_19238
    }

    /*3-4-04批量查周期列表（子周期列表）[2249]   */
    Assert.isNull(batchQueryCycleReq.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04批量查周期列表（子周期列表）-主体生命周期不能为空",false);
      listOmsCycle = mOmsCycleService.batchQueryCycle(batchQueryCycleReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsCycle_1 = listOmsCycle;
List<OmsCycle> listOmsCycle_2 =new ArrayList<>();
    QueryCycleListReq queryCycleListReq=new QueryCycleListReq();
  queryCycleListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:374982_1_19239
if(reqDto!=null){
      queryCycleListReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:374985_1_19239
queryCycleListReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:374986_1_19239
queryCycleListReq.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:374978_1_19239
    }
  
    /*3-4-04查询周期列表（父周期列表）[2003]   */
    Assert.isNull(queryCycleListReq.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期开始时间不能为空",false);
Assert.isNull(queryCycleListReq.getCycleEndTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期结束时间不能为空",false);
Assert.isNull(queryCycleListReq.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期类型标识不能为空",false);
Assert.isNull(queryCycleListReq.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-主体生命周期不能为空",false);
      listOmsCycle_2 = mOmsCycleService.queryCycleList(queryCycleListReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsCycle_3 = listOmsCycle_2;
if((reqDto!= null&&  reqDto.getCycleList() !=null && reqDto.getCycleList().size()==0)) {
        //if(D3-4查询父子中周期列表.周期列表数据集条数 等于 0)  19240
        
CheckCycleComRespDto checkCycleComRespDto = null;
    CheckCycleComReqDto checkCycleComReqDto=new CheckCycleComReqDto();
  checkCycleComReqDto.setAddCycleBusinessScene("ADD_EVA_TEMP");//sourceId:375865_1_19372
if(reqDto!=null){
      checkCycleComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:410920_1_19372
checkCycleComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:410921_1_19372
checkCycleComReqDto.setCycleTypeCode(reqDto.getSubcycleType());//SimpleFieldAssign//sourceId:410922_1_19372
checkCycleComReqDto.setFatherCycleType(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:375863_1_19372
    }
  
    /*D3-4检查生成不存在的周期(公共)[3130]   */
    Assert.isNull(checkCycleComReqDto.getAddCycleBusinessScene(),"D3-4查询父子中周期列表-D3-4检查生成不存在的周期(公共)-新增周期业务场景不能为空",false);
Assert.isNull(checkCycleComReqDto.getCycleStartTime(),"D3-4查询父子中周期列表-D3-4检查生成不存在的周期(公共)-周期开始时间不能为空",false);
Assert.isNull(checkCycleComReqDto.getCycleEndTime(),"D3-4查询父子中周期列表-D3-4检查生成不存在的周期(公共)-周期结束时间不能为空",false);
Assert.isNull(checkCycleComReqDto.getFatherCycleType(),"D3-4查询父子中周期列表-D3-4检查生成不存在的周期(公共)-父周期周期类型不能为空",false);
      checkCycleComRespDto = checkCycleCom(checkCycleComReqDto)/*vcase invoke 同服务,同domain*/;
      
      
      
List<OmsCycle> listOmsCycle_4 =new ArrayList<>();
    QueryCycleListReq queryCycleListReq_1=new QueryCycleListReq();
  queryCycleListReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:374982_1_19373
if(reqDto!=null){
      queryCycleListReq_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:374985_1_19373
queryCycleListReq_1.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:374986_1_19373
queryCycleListReq_1.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:374978_1_19373
    }
  
    /*3-4-04查询周期列表（父周期列表）[2003]   */
    Assert.isNull(queryCycleListReq_1.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期开始时间不能为空",false);
Assert.isNull(queryCycleListReq_1.getCycleEndTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期结束时间不能为空",false);
Assert.isNull(queryCycleListReq_1.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期类型标识不能为空",false);
Assert.isNull(queryCycleListReq_1.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-主体生命周期不能为空",false);
      listOmsCycle_4 = mOmsCycleService.queryCycleList(queryCycleListReq_1)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsCycle_3 = listOmsCycle_4;
      }
if((reqDto!= null&&  reqDto.getOpenMidCycle() !=null && reqDto.getOpenMidCycle().equals("TRUE"))) {
        //if(D3-4查询父子中周期列表.是否开启中期 等于 是)  19246
        
//ModelCode: getSpecRecInSortedDataList
        ObtainGainSortDataSetAssignCycleRespDto getSpecRecInSortedDataListRes = null;
    if(listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)&& listOmsCycle.size()>0 ){
          ObtainGainSortDataSetAssignCycleReqDto getSpecRecInSortedDataListReq=new ObtainGainSortDataSetAssignCycleReqDto();
  if(reqDto!=null){
      getSpecRecInSortedDataListReq.setOutputNum(reqDto.getMidSubcycleQuantity());//SimpleFieldAssign//sourceId:375687_1_19354
    }
if(listOmsCycle!= null&& !CollectionUtil.isEmpty(listOmsCycle)&&  listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)){
      getSpecRecInSortedDataListReq.setCycleList(listOmsCycle.stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:375673_1_19354
    }
  
    /*M3获取已排序数据集中的指定周期（特殊方法）[4828]  入参数据集（子周期列表）+数量N。
业务场景：获取子周期列表中中期的结束时间。既已排序数据集的第N条数据记录 */
    Assert.isNull(getSpecRecInSortedDataListReq.getOutputNum(),"D3-4查询父子中周期列表-M3获取已排序数据集中的指定周期（特殊方法）-传输数值（整数型）不能为空",false);
      getSpecRecInSortedDataListRes = nbCycleType.obtainGainSortDataSetAssignCycle(getSpecRecInSortedDataListReq);
      
      
      
           }
OmsCycle omsCycle = null;
    QueryMidCycleDetailReq queryMidCycleDetailReq=new QueryMidCycleDetailReq();
  queryMidCycleDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:375096_1_19248
if(reqDto!=null){
      queryMidCycleDetailReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:375093_1_19248
queryMidCycleDetailReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:375755_1_19248
queryMidCycleDetailReq.setCycleTypeCode(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:375095_1_19248
    }
  
    /*3-4-04查询中期周期详情[4827]   */
    Assert.isNull(queryMidCycleDetailReq.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期开始时间不能为空",false);
Assert.isNull(queryMidCycleDetailReq.getCycleEndTime(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期结束时间不能为空",false);
Assert.isNull(queryMidCycleDetailReq.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期类型标识不能为空",false);
Assert.isNull(queryMidCycleDetailReq.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryMidCycleDetail(queryMidCycleDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsCycle_1 = omsCycle;
if((omsCycle == null )) {
        //if(3-4-04查询中期周期详情.出参 值等于空 )  19249
        
OmsCycle omsCycle_2 = null;
    QueryCycleDetailReq queryCycleDetailReq=new QueryCycleDetailReq();
  queryCycleDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:375869_1_19356
if(reqDto!=null){
      queryCycleDetailReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:375866_1_19356
queryCycleDetailReq.setCycleTypeCode(reqDto.getSubcycleType());//SimpleFieldAssign//sourceId:375868_1_19356
    }
  
    /*3-4-04查询开始子周期名称[2004]   */
    Assert.isNull(queryCycleDetailReq.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询开始子周期名称-周期开始时间不能为空",false);
Assert.isNull(queryCycleDetailReq.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询开始子周期名称-周期类型标识不能为空",false);
Assert.isNull(queryCycleDetailReq.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询开始子周期名称-主体生命周期不能为空",false);
      omsCycle_2 = mOmsCycleService.queryCycleDetail(queryCycleDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
GenerateTimeCycleEtcSemanticInstanceComRespDto generateTimeCycleEtcSemanticInstanceComRespDto = null;
    if(omsCycle_2 !=null){
          GenerateTimeCycleEtcSemanticInstanceComReqDto generateTimeCycleEtcSemanticInstanceComReqDto=new GenerateTimeCycleEtcSemanticInstanceComReqDto();
  generateTimeCycleEtcSemanticInstanceComReqDto.setTemplateSemanticEngineCode("GENERATE_TOTAL_CYCLE_NAME");//CUSTOM_CONVENTION//sourceId:399322_1_20376
if(omsCycle_2!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto.setCycleStartName(omsCycle_2.getCycleStandardName());//SimpleFieldAssign//sourceId:399327_1_20376
    }
if(getSpecRecInSortedDataListRes!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto.setCycleEndName(getSpecRecInSortedDataListRes.getCycleStandardName());//SimpleFieldAssign//sourceId:399328_1_20376
    }
  
    /*D2生成中期周期名称(公共)[5030]   */
    Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getTemplateSemanticEngineCode(),"D3-4查询父子中周期列表-D2生成中期周期名称(公共)-模板引擎标识不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getCycleStartName(),"D3-4查询父子中周期列表-D2生成中期周期名称(公共)-开始周期名称不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getCycleEndName(),"D3-4查询父子中周期列表-D2生成中期周期名称(公共)-结束周期名称不能为空",false);
      generateTimeCycleEtcSemanticInstanceComRespDto = fwCompTemplateEngineClient.generateTimeCycleEtcSemanticInstanceCom(generateTimeCycleEtcSemanticInstanceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      generateTimeCycleEtcSemanticInstanceComRespDto_1 = generateTimeCycleEtcSemanticInstanceComRespDto;
           }
      }
      }
      }
else if((reqDto!= null&&  reqDto.getCycleSizeType() !=null && reqDto.getCycleSizeType().equals("FATHER_CYCLE_EQ_YEAR"))){
       //elseif(D3-4查询父子中周期列表.周期大小类型 等于 父周期等于年)  19235
      
List<OmsCycle> listOmsCycle_5 =new ArrayList<>();
    QueryCycleListReq queryCycleListReq_2=new QueryCycleListReq();
  queryCycleListReq_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:374982_1_19252
if(reqDto!=null){
      queryCycleListReq_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:374985_1_19252
queryCycleListReq_2.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:374986_1_19252
queryCycleListReq_2.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:374978_1_19252
    }
  
    /*3-4-04查询周期列表（父周期列表）[2003]   */
    Assert.isNull(queryCycleListReq_2.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期开始时间不能为空",false);
Assert.isNull(queryCycleListReq_2.getCycleEndTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期结束时间不能为空",false);
Assert.isNull(queryCycleListReq_2.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期类型标识不能为空",false);
Assert.isNull(queryCycleListReq_2.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-主体生命周期不能为空",false);
      listOmsCycle_5 = mOmsCycleService.queryCycleList(queryCycleListReq_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsCycle_3 = listOmsCycle_5;
if((reqDto!= null&&  reqDto.getOpenMidCycle() !=null && reqDto.getOpenMidCycle().equals("TRUE"))) {
        //if(D3-4查询父子中周期列表.是否开启中期 等于 是)  19363
        
OmsCycle omsCycle_4 = null;
    QueryMidCycleDetailReq queryMidCycleDetailReq_1=new QueryMidCycleDetailReq();
  queryMidCycleDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:375096_1_19364
if(reqDto!=null){
      queryMidCycleDetailReq_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:375093_1_19364
queryMidCycleDetailReq_1.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:375755_1_19364
queryMidCycleDetailReq_1.setCycleTypeCode(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:375095_1_19364
    }
  
    /*3-4-04查询中期周期详情[4827]   */
    Assert.isNull(queryMidCycleDetailReq_1.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期开始时间不能为空",false);
Assert.isNull(queryMidCycleDetailReq_1.getCycleEndTime(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期结束时间不能为空",false);
Assert.isNull(queryMidCycleDetailReq_1.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期类型标识不能为空",false);
Assert.isNull(queryMidCycleDetailReq_1.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-主体生命周期不能为空",false);
      omsCycle_4 = mOmsCycleService.queryMidCycleDetail(queryMidCycleDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsCycle_1 = omsCycle_4;
      }
    }
else if((reqDto!= null&&  reqDto.getCycleSizeType() !=null && reqDto.getCycleSizeType().equals("FATHER_CYCLE_LE_YEAR"))){
       //elseif(D3-4查询父子中周期列表.周期大小类型 等于 父周期小于年)  19236
      
List<OmsCycle> listOmsCycle_6 =new ArrayList<>();
    QueryCycleListReq queryCycleListReq_3=new QueryCycleListReq();
  queryCycleListReq_3.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:374982_1_19357
if(reqDto!=null){
      queryCycleListReq_3.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:374985_1_19357
queryCycleListReq_3.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:374986_1_19357
queryCycleListReq_3.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:374978_1_19357
    }
  
    /*3-4-04查询周期列表（父周期列表）[2003]   */
    Assert.isNull(queryCycleListReq_3.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期开始时间不能为空",false);
Assert.isNull(queryCycleListReq_3.getCycleEndTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期结束时间不能为空",false);
Assert.isNull(queryCycleListReq_3.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期类型标识不能为空",false);
Assert.isNull(queryCycleListReq_3.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-主体生命周期不能为空",false);
      listOmsCycle_6 = mOmsCycleService.queryCycleList(queryCycleListReq_3)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsCycle_3 = listOmsCycle_6;
if((reqDto!= null&&  reqDto.getOpenMidCycle() !=null && reqDto.getOpenMidCycle().equals("TRUE"))) {
        //if(D3-4查询父子中周期列表.是否开启中期 等于 是)  19359
        
OmsCycle omsCycle_5 = null;
    QueryMidCycleDetailReq queryMidCycleDetailReq_2=new QueryMidCycleDetailReq();
  queryMidCycleDetailReq_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:375096_1_19360
if(reqDto!=null){
      queryMidCycleDetailReq_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:375093_1_19360
queryMidCycleDetailReq_2.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:375755_1_19360
queryMidCycleDetailReq_2.setCycleTypeCode(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:375095_1_19360
    }
  
    /*3-4-04查询中期周期详情[4827]   */
    Assert.isNull(queryMidCycleDetailReq_2.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期开始时间不能为空",false);
Assert.isNull(queryMidCycleDetailReq_2.getCycleEndTime(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期结束时间不能为空",false);
Assert.isNull(queryMidCycleDetailReq_2.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期类型标识不能为空",false);
Assert.isNull(queryMidCycleDetailReq_2.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-主体生命周期不能为空",false);
      omsCycle_5 = mOmsCycleService.queryMidCycleDetail(queryMidCycleDetailReq_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsCycle_1 = omsCycle_5;
      }
    }
else if((reqDto!= null&&  reqDto.getCycleSizeType() !=null && reqDto.getCycleSizeType().equals("FATHER_CYCLE_EQ_SCHOOL_YEAR"))){
       //elseif(D3-4查询父子中周期列表.周期大小类型 等于 父周期等于学年)  19237
      
List<OmsCycle> listOmsCycle_7 =new ArrayList<>();
    QueryCycleListReq queryCycleListReq_4=new QueryCycleListReq();
  queryCycleListReq_4.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:374969_1_19358
if(reqDto!=null){
      queryCycleListReq_4.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:374972_1_19358
queryCycleListReq_4.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:374973_1_19358
queryCycleListReq_4.setCycleTypeCode(reqDto.getSubcycleType());//SimpleFieldAssign//sourceId:374965_1_19358
    }
  
    /*3-4-04查询周期列表（子周期列表）[2003]   */
    Assert.isNull(queryCycleListReq_4.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（子周期列表）-周期开始时间不能为空",false);
Assert.isNull(queryCycleListReq_4.getCycleEndTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（子周期列表）-周期结束时间不能为空",false);
Assert.isNull(queryCycleListReq_4.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询周期列表（子周期列表）-周期类型标识不能为空",false);
Assert.isNull(queryCycleListReq_4.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询周期列表（子周期列表）-主体生命周期不能为空",false);
      listOmsCycle_7 = mOmsCycleService.queryCycleList(queryCycleListReq_4)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsCycle_8 = listOmsCycle_7;
if((reqDto!= null&&  reqDto.getOpenMidCycle() !=null && reqDto.getOpenMidCycle().equals("TRUE"))) {
        //if(D3-4查询父子中周期列表.是否开启中期 等于 是)  19361
        
OmsCycle omsCycle_6 = null;
    QueryMidCycleDetailReq queryMidCycleDetailReq_3=new QueryMidCycleDetailReq();
  queryMidCycleDetailReq_3.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:375096_1_19362
if(reqDto!=null){
      queryMidCycleDetailReq_3.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:375093_1_19362
queryMidCycleDetailReq_3.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:375755_1_19362
queryMidCycleDetailReq_3.setCycleTypeCode(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:375095_1_19362
    }
  
    /*3-4-04查询中期周期详情[4827]   */
    Assert.isNull(queryMidCycleDetailReq_3.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期开始时间不能为空",false);
Assert.isNull(queryMidCycleDetailReq_3.getCycleEndTime(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期结束时间不能为空",false);
Assert.isNull(queryMidCycleDetailReq_3.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-周期类型标识不能为空",false);
Assert.isNull(queryMidCycleDetailReq_3.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询中期周期详情-主体生命周期不能为空",false);
      omsCycle_6 = mOmsCycleService.queryMidCycleDetail(queryMidCycleDetailReq_3)/*vcase invoke 本地 method 方法调用;*/;
      
      
      omsCycle_1 = omsCycle_6;
      }
    }
      }
else if((reqDto!= null&&  reqDto.getCycleMode() !=null && reqDto.getCycleMode().equals("SINGLE_CYCLE"))){
       //elseif(D3-4查询父子中周期列表.周期模式 等于 单周期)  19223
      
List<OmsCycle> listOmsCycle_9 =new ArrayList<>();
    QueryCycleListReq queryCycleListReq_5=new QueryCycleListReq();
  queryCycleListReq_5.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:374982_1_19353
if(reqDto!=null){
      queryCycleListReq_5.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:374985_1_19353
queryCycleListReq_5.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:374986_1_19353
queryCycleListReq_5.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:374978_1_19353
    }
  
    /*3-4-04查询周期列表（父周期列表）[2003]   */
    Assert.isNull(queryCycleListReq_5.getCycleStartTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期开始时间不能为空",false);
Assert.isNull(queryCycleListReq_5.getCycleEndTime(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期结束时间不能为空",false);
Assert.isNull(queryCycleListReq_5.getCycleTypeCode(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-周期类型标识不能为空",false);
Assert.isNull(queryCycleListReq_5.getSubjectLifeCycle(),"D3-4查询父子中周期列表-3-4-04查询周期列表（父周期列表）-主体生命周期不能为空",false);
      listOmsCycle_9 = mOmsCycleService.queryCycleList(queryCycleListReq_5)/*vcase invoke 本地 method 方法调用;*/;
      
      
      listOmsCycle_3 = listOmsCycle_9;
    }
//processBranchName:正常结束 ,processBranchId:19370
        
QueryParentSonMidCycleListRespDto retData = new QueryParentSonMidCycleListRespDto();
  retData.setFatherCycleList(listOmsCycle_3.stream().map(item -> BeanUtil.toBean(item, FatherCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:375782_1
if(listOmsCycle_1!= null&& !CollectionUtil.isEmpty(listOmsCycle_1)&&  listOmsCycle_1 !=null&& !CollectionUtil.isEmpty(listOmsCycle_1)){
      retData.setSubCycleList(listOmsCycle_1.stream().map(item -> BeanUtil.toBean(item, SubCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:375780_1
    }
if(listOmsCycle_8!= null&& !CollectionUtil.isEmpty(listOmsCycle_8)&&  listOmsCycle_8 !=null&& !CollectionUtil.isEmpty(listOmsCycle_8)){
      retData.setSubCycleList(listOmsCycle_8.stream().map(item -> BeanUtil.toBean(item, SubCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:375780_1
    }
      if(generateTimeCycleEtcSemanticInstanceComRespDto_1!=null){
          retData.setMidCycleStandardName(generateTimeCycleEtcSemanticInstanceComRespDto_1.getObjectName());//SimpleFieldAssign//sourceId:375784_1
      }
if(omsCycle_1!=null){
      retData.setMidCycleStandardName(omsCycle_1.getCycleStandardName());//SimpleFieldAssign//sourceId:375784_1
    }
  

  
  
return retData;
  }
/**
   * D3-4查询中期周期详情[4832]
   * gen by moon at 10/20/2022, 7:52:11 PM
   */
  @Trace(operationName = "D3-4查询中期周期详情")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryMidCycleDetailRespDto queryMidCycleDetail(QueryMidCycleDetailReqDto reqDto){
    
      
      OmsCycle omsCycle_1 =null;
//步骤0: M3获取接收外部字段(特殊方法） - obtainReceiveOutField
     //ModelCode: receptionService
        ObtainReceiveOutFieldRespDto receptionServiceRes = null;
    ObtainReceiveOutFieldReqDto receptionServiceReq=new ObtainReceiveOutFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:376271_1
receptionServiceReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:376272_1
receptionServiceReq.setMidCycleType(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:376273_1
    }
  
    /*M3获取接收外部字段(特殊方法）[4608]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCycleStartTime(),"D3-4查询中期周期详情-M3获取接收外部字段(特殊方法）-周期开始时间不能为空",false);
Assert.isNull(receptionServiceReq.getCycleEndTime(),"D3-4查询中期周期详情-M3获取接收外部字段(特殊方法）-周期结束时间不能为空",false);
Assert.isNull(receptionServiceReq.getMidCycleType(),"D3-4查询中期周期详情-M3获取接收外部字段(特殊方法）-中期周期类型不能为空",false);
      receptionServiceRes = nbCycleType.obtainReceiveOutField(receptionServiceReq);
      
      
      

//步骤1: D3判断周期类型是否平台(公共) - judgeCycleTypeIsPlatformCom
     JudgeCycleTypeIsPlatformComRespDto judgeCycleTypeIsPlatformComRespDto = null;
    JudgeCycleTypeIsPlatformComReqDto judgeCycleTypeIsPlatformComReqDto=new JudgeCycleTypeIsPlatformComReqDto();
  if(reqDto!=null){
      judgeCycleTypeIsPlatformComReqDto.setEndValue(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:385187_1
    }

    /*D3判断周期类型是否平台(公共)[4972]   */
    Assert.isNull(judgeCycleTypeIsPlatformComReqDto.getEndValue(),"D3-4查询中期周期详情-D3判断周期类型是否平台(公共)-周期类型值不能为空",false);
      judgeCycleTypeIsPlatformComRespDto = targetCycleService.judgeCycleTypeIsPlatformCom(judgeCycleTypeIsPlatformComReqDto);




//步骤2: 3-4-04查询中期周期详情 - queryMidCycleDetail
     OmsCycle omsCycle = null;
    if(judgeCycleTypeIsPlatformComRespDto !=null){
          QueryMidCycleDetailReq queryMidCycleDetailReq=new QueryMidCycleDetailReq();
  queryMidCycleDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:376069_1
if(reqDto!=null){
      queryMidCycleDetailReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:376066_1
queryMidCycleDetailReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:376067_1
queryMidCycleDetailReq.setCycleTypeCode(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:376068_1
    }
if(judgeCycleTypeIsPlatformComRespDto!=null){
      queryMidCycleDetailReq.setPlatformData(judgeCycleTypeIsPlatformComRespDto.getPlatformData());//SimpleFieldAssign//sourceId:385192_1
queryMidCycleDetailReq.setSpaceId(judgeCycleTypeIsPlatformComRespDto.getSpaceId());//SimpleFieldAssign//sourceId:385193_1
    }

    /*3-4-04查询中期周期详情[4827]   */
    Assert.isNull(queryMidCycleDetailReq.getCycleStartTime(),"D3-4查询中期周期详情-3-4-04查询中期周期详情-周期开始时间不能为空",false);
Assert.isNull(queryMidCycleDetailReq.getCycleEndTime(),"D3-4查询中期周期详情-3-4-04查询中期周期详情-周期结束时间不能为空",false);
Assert.isNull(queryMidCycleDetailReq.getCycleTypeCode(),"D3-4查询中期周期详情-3-4-04查询中期周期详情-周期类型标识不能为空",false);
Assert.isNull(queryMidCycleDetailReq.getPlatformData(),"D3-4查询中期周期详情-3-4-04查询中期周期详情-是否是平台不能为空",false);
Assert.isNull(queryMidCycleDetailReq.getSubjectLifeCycle(),"D3-4查询中期周期详情-3-4-04查询中期周期详情-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryMidCycleDetail(queryMidCycleDetailReq);
      
      
      omsCycle_1 = omsCycle;
           }

QueryMidCycleDetailRespDto retData = new QueryMidCycleDetailRespDto();
  if(omsCycle_1!=null){
      retData.setCycleStandardName(omsCycle_1.getCycleStandardName());//SimpleFieldAssign//sourceId:376296_1
    }
  

  
  
return retData;
  }
/**
   * D3-查询综合周期列表(公共)[4974]
   * gen by moon at 5/25/2023, 11:15:26 PM
   */
  @Trace(operationName = "D3-查询综合周期列表(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QuerySyntheticalCycleListComRespDto querySyntheticalCycleListCom(QuerySyntheticalCycleListComReqDto reqDto){


      ImplementMergeCycleListRespDto collectionsMergeDataRes_1 =null;
//步骤0: M3-获取接收字段（特殊方法） - obtainReceiveField
     //ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes = null;
    ObtainReceiveFieldReqDto receptionServiceReq=new ObtainReceiveFieldReqDto();
  if(reqDto!=null){
receptionServiceReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:385115_1
receptionServiceReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:385116_1
receptionServiceReq.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:385126_1
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:385125_1
receptionServiceReq.setTemplateOpenCycleTypeList(reqDto.getTemplateCycleList());//list-field-assign//sourceId:984064_1
    }

    /*M3-获取接收字段[2451]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCycleStartTime(),"D3-查询综合周期列表(公共)-M3-获取接收字段-周期开始时间不能为空",false);
Assert.isNull(receptionServiceReq.getCycleEndTime(),"D3-查询综合周期列表(公共)-M3-获取接收字段-周期结束时间不能为空",false);
Assert.isNull(receptionServiceReq.getTargetId(),"D3-查询综合周期列表(公共)-M3-获取接收字段-冗余目标ID不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D3-查询综合周期列表(公共)-M3-获取接收字段-冗余评价模板ID不能为空",false);
      receptionServiceRes = nbCycleType.obtainReceiveField(receptionServiceReq);




//步骤1: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setConfSchemeCode("COM_CONF_SCHEME");//CUSTOM_CONVENTION//sourceId:449190_1
queryConfItemMatchAnswerListComReqDto.setConfItemCode("SPACE_CREATE_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:384650_1
queryConfItemMatchAnswerListComReqDto.setIsPlatData("TRUE");//sourceId:384653_1

    /*D2-3查询平台配置租户生成周期类型[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfSchemeCode(),"D3-查询综合周期列表(公共)-D2-3查询平台配置租户生成周期类型-配置方案标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"D3-查询综合周期列表(公共)-D2-3查询平台配置租户生成周期类型-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"D3-查询综合周期列表(公共)-D2-3查询平台配置租户生成周期类型-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




//步骤2: M3-获取数据集差集（公共） - obtainCollectionsDiffCom
     //ModelCode: getCollectionsDiff
        ObtainCollectionsDiffComRespDto getCollectionsDiffRes = null;
    if(queryConfItemMatchAnswerListComRespDto !=null){
          ObtainCollectionsDiffComReqDto getCollectionsDiffReq=new ObtainCollectionsDiffComReqDto();
  if(reqDto!=null){
      getCollectionsDiffReq.setCollectionsDiffComFatList(reqDto.getTemplateCycleList());//list-field-assign//sourceId:384664_1
    }
  if(queryConfItemMatchAnswerListComRespDto!= null&&  queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList())){
      getCollectionsDiffReq.setCollectionsDiffComSubList(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().stream().map(item->item.getEndValue())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:384665_1
    }

    /*M3-获取数据集差集（查询启用周期类型-特殊周期类型=平台周期类型）[4975]  对比数据集一，数据二，返回数据集一中有，但数据集二中不存在的数据 */

      getCollectionsDiffRes = nbCycleType.obtainCollectionsDiffCom(getCollectionsDiffReq);



           }

//步骤3: 3-4-04批量查周期列表By类型Code - batchQueryCycleByCycCode
     List<OmsCycle> listOmsCycle =new ArrayList<>();
    BatchQueryCycleByCycCodeReq batchQueryCycleByCycCodeReq=new BatchQueryCycleByCycCodeReq();
  batchQueryCycleByCycCodeReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:384640_1
batchQueryCycleByCycCodeReq.setPlatformData("TRUE");//sourceId:384645_1
if(getCollectionsDiffRes!=null){
      batchQueryCycleByCycCodeReq.setCycleList(getCollectionsDiffRes.getCollectionsDiffList());//list-field-assign//sourceId:384639_1
    }
if(reqDto!=null){
      batchQueryCycleByCycCodeReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:384666_1
batchQueryCycleByCycCodeReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:384667_1
    }

    /*3-4-04批量查询平台周期列表[2491]   */
    Assert.isNull(batchQueryCycleByCycCodeReq.getCycleStartTime(),"D3-查询综合周期列表(公共)-3-4-04批量查询平台周期列表-周期开始时间不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq.getCycleEndTime(),"D3-查询综合周期列表(公共)-3-4-04批量查询平台周期列表-周期结束时间不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq.getSubjectLifeCycle(),"D3-查询综合周期列表(公共)-3-4-04批量查询平台周期列表-主体生命周期不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq.getPlatformData(),"D3-查询综合周期列表(公共)-3-4-04批量查询平台周期列表-是否是平台不能为空",false);
      listOmsCycle = mOmsCycleService.batchQueryCycleByCycCode(batchQueryCycleByCycCodeReq)/*vcase invoke 本地 method 方法调用;*/;




//步骤4: M3-获取数据集交集（公共特殊方法） - obtainCollectionsIntersectionsData
     //ModelCode: collectionsIntersectionsData
        ObtainCollectionsIntersectionsDataRespDto collectionsIntersectionsDataRes = null;
    if(queryConfItemMatchAnswerListComRespDto !=null){
          ObtainCollectionsIntersectionsDataReqDto collectionsIntersectionsDataReq=new ObtainCollectionsIntersectionsDataReqDto();
  if(reqDto!=null){
      collectionsIntersectionsDataReq.setCollectionsIntersectionsDataAList(reqDto.getTemplateCycleList());//list-field-assign//sourceId:384671_1
    }
  if(queryConfItemMatchAnswerListComRespDto!= null&&  queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList())){
      collectionsIntersectionsDataReq.setCollectionsIntersectionsDataBList(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().stream().map(item->item.getEndValue())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:384672_1
    }

    /*M3-获取数据集交集（查询启用周期类型与特殊周期类型都存在的周期类型）[4973]  入参两个数据集，求两个数据集中共同存在的部分输出 */

      collectionsIntersectionsDataRes = nbCycleType.obtainCollectionsIntersectionsData(collectionsIntersectionsDataReq);



           }

//步骤5: 3-4-04批量查周期列表By类型Code - batchQueryCycleByCycCode
     List<OmsCycle> listOmsCycle_2 =new ArrayList<>();
    BatchQueryCycleByCycCodeReq batchQueryCycleByCycCodeReq_1=new BatchQueryCycleByCycCodeReq();
  batchQueryCycleByCycCodeReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:384675_1
batchQueryCycleByCycCodeReq_1.setPlatformData("FALSE");//sourceId:384680_1
batchQueryCycleByCycCodeReq_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:384679_1
if(collectionsIntersectionsDataRes!=null){
      batchQueryCycleByCycCodeReq_1.setCycleList(collectionsIntersectionsDataRes.getCollectionsIntersectionsDataList());//list-field-assign//sourceId:384674_1
    }
if(reqDto!=null){
      batchQueryCycleByCycCodeReq_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:384677_1
batchQueryCycleByCycCodeReq_1.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:384678_1
    }

    /*3-4-04批量查询空间周期列表[2491]   */
    Assert.isNull(batchQueryCycleByCycCodeReq_1.getCycleStartTime(),"D3-查询综合周期列表(公共)-3-4-04批量查询空间周期列表-周期开始时间不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq_1.getCycleEndTime(),"D3-查询综合周期列表(公共)-3-4-04批量查询空间周期列表-周期结束时间不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq_1.getSubjectLifeCycle(),"D3-查询综合周期列表(公共)-3-4-04批量查询空间周期列表-主体生命周期不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq_1.getPlatformData(),"D3-查询综合周期列表(公共)-3-4-04批量查询空间周期列表-是否是平台不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq_1.getSpaceId(),"D3-查询综合周期列表(公共)-3-4-04批量查询空间周期列表-创建于空间ID不能为空",false);
      listOmsCycle_2 = mOmsCycleService.batchQueryCycleByCycCode(batchQueryCycleByCycCodeReq_1)/*vcase invoke 本地 method 方法调用;*/;




//步骤6: M3-执行周期列表融合（特殊方法） - implementMergeCycleList
     //ModelCode: collectionsMergeData
        ImplementMergeCycleListRespDto collectionsMergeDataRes = null;
    if(listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)&& listOmsCycle.size()>0 ){
          ImplementMergeCycleListReqDto collectionsMergeDataReq=new ImplementMergeCycleListReqDto();
  if(listOmsCycle!= null&& !CollectionUtil.isEmpty(listOmsCycle)&&  listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)){
      collectionsMergeDataReq.setTemplateCycleList(listOmsCycle.stream().map(item -> BeanUtil.toBean(item, TemplateCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:384647_1
    }
if(listOmsCycle_2!= null&& !CollectionUtil.isEmpty(listOmsCycle_2)&&  listOmsCycle_2 !=null&& !CollectionUtil.isEmpty(listOmsCycle_2)){
      collectionsMergeDataReq.setSpecCycleList(listOmsCycle_2.stream().map(item -> BeanUtil.toBean(item, SpecCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:384648_1
    }

    /*M3-执行周期列表融合（合并平台周期列表+空间周期列表）[4938]  入参多个数据集，取并集 */

      collectionsMergeDataRes = nbCycleType.implementMergeCycleList(collectionsMergeDataReq);


      collectionsMergeDataRes_1 = collectionsMergeDataRes;
           }

QuerySyntheticalCycleListComRespDto retData = new QuerySyntheticalCycleListComRespDto();
  if(collectionsMergeDataRes_1!=null){
      retData.setCycleList(collectionsMergeDataRes_1.getMergeCycleList().stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:386590_1
    }




return retData;
  }
/**
   * 11111D3-查询周期列表(公共)[4987]
   * gen by moon at 12/23/2022, 12:49:26 AM
   */
  @Trace(operationName = "D3-查询周期列表(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCycleListComRespDto queryCycleListCom(QueryCycleListComReqDto reqDto){


      QuerySyntheticalCycleListComRespDto querySyntheticalCycleListComRespDto_1 =null;
//步骤0: M3-获取接收字段（特殊方法） - obtainReceiveField
     //ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes = null;
    ObtainReceiveFieldReqDto receptionServiceReq=new ObtainReceiveFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:387024_1
receptionServiceReq.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:387025_1
receptionServiceReq.setConfSchemeCode(reqDto.getConfSchemeCode());//SimpleFieldAssign//sourceId:387026_1
receptionServiceReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:387027_1
receptionServiceReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:387028_1
    }

    /*M3-获取接收字段（特殊方法）[2451]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D3-查询周期列表(公共)-M3-获取接收字段（特殊方法）-冗余评价模板ID不能为空",false);
Assert.isNull(receptionServiceReq.getTargetId(),"D3-查询周期列表(公共)-M3-获取接收字段（特殊方法）-冗余目标ID不能为空",false);
Assert.isNull(receptionServiceReq.getConfSchemeCode(),"D3-查询周期列表(公共)-M3-获取接收字段（特殊方法）-配置方案标识不能为空",false);
Assert.isNull(receptionServiceReq.getCycleStartTime(),"D3-查询周期列表(公共)-M3-获取接收字段（特殊方法）-周期开始时间不能为空",false);
Assert.isNull(receptionServiceReq.getCycleEndTime(),"D3-查询周期列表(公共)-M3-获取接收字段（特殊方法）-周期结束时间不能为空",false);
      receptionServiceRes = nbCycleType.obtainReceiveField(receptionServiceReq);




//步骤1: D3-查询综合周期列表(公共) - querySyntheticalCycleListCom
      QuerySyntheticalCycleListComRespDto querySyntheticalCycleListComRespDto = null;
    QuerySyntheticalCycleListComReqDto querySyntheticalCycleListComReqDto=new QuerySyntheticalCycleListComReqDto();
  if(reqDto!=null){
      querySyntheticalCycleListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:386442_1
querySyntheticalCycleListComReqDto.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:386443_1
//querySyntheticalCycleListComReqDto.setConfSchemeCode(reqDto.getConfSchemeCode());//SimpleFieldAssign//sourceId:386439_1
querySyntheticalCycleListComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:386440_1
querySyntheticalCycleListComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:386441_1
    }

    /*D3-查询综合周期列表（平台周期类型+空间周期类型）[4974]   */
    Assert.isNull(querySyntheticalCycleListComReqDto.getEvaluationTemplateId(),"D3-查询周期列表(公共)-D3-查询综合周期列表（平台周期类型+空间周期类型）-冗余评价模板ID不能为空",false);
Assert.isNull(querySyntheticalCycleListComReqDto.getTargetId(),"D3-查询周期列表(公共)-D3-查询综合周期列表（平台周期类型+空间周期类型）-冗余目标ID不能为空",false);
//Assert.isNull(querySyntheticalCycleListComReqDto.getConfSchemeCode(),"D3-查询周期列表(公共)-D3-查询综合周期列表（平台周期类型+空间周期类型）-配置方案标识不能为空",false);
Assert.isNull(querySyntheticalCycleListComReqDto.getCycleStartTime(),"D3-查询周期列表(公共)-D3-查询综合周期列表（平台周期类型+空间周期类型）-周期开始时间不能为空",false);
Assert.isNull(querySyntheticalCycleListComReqDto.getCycleEndTime(),"D3-查询周期列表(公共)-D3-查询综合周期列表（平台周期类型+空间周期类型）-周期结束时间不能为空",false);
      querySyntheticalCycleListComRespDto = querySyntheticalCycleListCom(querySyntheticalCycleListComReqDto);


      querySyntheticalCycleListComRespDto_1 = querySyntheticalCycleListComRespDto;
QueryCycleListComRespDto retData = new QueryCycleListComRespDto();
  if(querySyntheticalCycleListComRespDto_1!=null){
      retData.setCycleList(querySyntheticalCycleListComRespDto_1.getCycleList().stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:387035_1
    }




return retData;
  }
/**
   * D3-4执行检查周期类型(公共)[3712]
   * gen by moon at 5/2/2024, 6:21:59 PM
   */
  @Trace(operationName = "D3-4执行检查周期类型(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementCheckCycleTypeComRespDto implementCheckCycleTypeCom(ImplementCheckCycleTypeComReqDto reqDto){


      OmsCycleType omsCycleType_1 =null;
OmsCycleType omsCycleType_6 =null;
//virtualUsage 3-4-04查询用于被评对象目标周期的周期列表  19339
      List<OmsCycle> listOmsCycle =new ArrayList<>();
    QueryCycleListReq queryCycleListReq=new QueryCycleListReq();
  queryCycleListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:171956_1_19339
if(reqDto!=null){
      queryCycleListReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:171959_1_19339
queryCycleListReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:171960_1_19339
queryCycleListReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:171952_1_19339
queryCycleListReq.setPlatformData(reqDto.getPlatformData());//SimpleFieldAssign//sourceId:1756947_1_19339
    }

    /*3-4-04查询用于被评对象目标周期的周期列表[2003]   */
    Assert.isNull(queryCycleListReq.getCycleStartTime(),"D3-4执行检查周期类型(公共)-3-4-04查询用于被评对象目标周期的周期列表-周期开始时间不能为空",false);
Assert.isNull(queryCycleListReq.getCycleEndTime(),"D3-4执行检查周期类型(公共)-3-4-04查询用于被评对象目标周期的周期列表-周期结束时间不能为空",false);
Assert.isNull(queryCycleListReq.getCycleTypeCode(),"D3-4执行检查周期类型(公共)-3-4-04查询用于被评对象目标周期的周期列表-周期类型标识不能为空",false);
Assert.isNull(queryCycleListReq.getSubjectLifeCycle(),"D3-4执行检查周期类型(公共)-3-4-04查询用于被评对象目标周期的周期列表-主体生命周期不能为空",false);
      listOmsCycle = mOmsCycleService.queryCycleList(queryCycleListReq)/*vcase invoke 本地 method 方法调用;*/;



//virtualUsage D2计算数据集内容条数服务(公共)  19340
      CalculateContentAmountComRespDto calculateContentAmountComRespDto = null;
    if(listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)&& listOmsCycle.size()>0 ){
          CalculateContentAmountComReqDto calculateContentAmountComReqDto=new CalculateContentAmountComReqDto();
  if(listOmsCycle!= null&& !CollectionUtil.isEmpty(listOmsCycle)&&  listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)){
  calculateContentAmountComReqDto.setContentAmountList(listOmsCycle.stream().map(item->item.getCycleId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:171963_1_19340
    }

    /*D2计算数据集内容条数服务(公共)[3386]   */

      calculateContentAmountComRespDto = fwCompStatisticalDataClient.calculateContentAmountCom(calculateContentAmountComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//virtualUsage 3-4-02查工作周期类型关系  22360
      OmsCycleTypeInstanceRelationship omsCycleTypeInstanceRelationship = null;
    if(calculateContentAmountComRespDto !=null){
          QueryCycleTypeInstanceRelationshipDetailReq queryCycleTypeInstanceRelationshipDetailReq=new QueryCycleTypeInstanceRelationshipDetailReq();
  queryCycleTypeInstanceRelationshipDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:449872_1_22360
if(reqDto!=null){
      queryCycleTypeInstanceRelationshipDetailReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:449891_1_22360
    }
if(calculateContentAmountComRespDto!=null){
      queryCycleTypeInstanceRelationshipDetailReq.setSubCycleNumber(calculateContentAmountComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:449892_1_22360
    }

    /*3-4-02查工作周期类型关系[1895]   */
    Assert.isNull(queryCycleTypeInstanceRelationshipDetailReq.getCycleTypeCode(),"D3-4执行检查周期类型(公共)-3-4-02查工作周期类型关系-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeInstanceRelationshipDetailReq.getSubCycleNumber(),"D3-4执行检查周期类型(公共)-3-4-02查工作周期类型关系-周期数量不能为空",false);
Assert.isNull(queryCycleTypeInstanceRelationshipDetailReq.getSubjectLifeCycle(),"D3-4执行检查周期类型(公共)-3-4-02查工作周期类型关系-主体生命周期不能为空",false);
      omsCycleTypeInstanceRelationship = mOmsCycleTypeInstanceRelationshipService.queryCycleTypeInstanceRelationshipDetail(queryCycleTypeInstanceRelationshipDetailReq)/*vcase invoke 本地 method 方法调用;*/;



           }
//virtualUsage 3-4-01查周期类型详情  19341
      OmsCycleType omsCycleType = null;
    if(omsCycleTypeInstanceRelationship !=null){
          QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:171977_1_19341
if(omsCycleTypeInstanceRelationship!=null){
      queryCycleTypeDetailReq.setCycleTypeId(omsCycleTypeInstanceRelationship.getParentCycleTypeId());//SimpleFieldAssign//sourceId:449896_1_19341
    }

    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeId(),"D3-4执行检查周期类型(公共)-3-4-01查周期类型详情-周期类型ID不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3-4执行检查周期类型(公共)-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq)/*vcase invoke 本地 method 方法调用;*/;


      omsCycleType_1 = omsCycleType;
           }
if((omsCycleType == null )) {
        //if(3-4-01查周期类型详情（看待确认的周期类型是否存在）.出参 值等于空 )  19342

OmsCycleType omsCycleType_2 = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq_1=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:375662_1_19346
if(reqDto!=null){
      queryCycleTypeDetailReq_1.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:375663_1_19346
    }

    /*3-4-01查子周期周期类型名称等信息[1881]   */
    Assert.isNull(queryCycleTypeDetailReq_1.getCycleTypeCode(),"D3-4执行检查周期类型(公共)-3-4-01查子周期周期类型名称等信息-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq_1.getSubjectLifeCycle(),"D3-4执行检查周期类型(公共)-3-4-01查子周期周期类型名称等信息-主体生命周期不能为空",false);
      omsCycleType_2 = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;



GenerateTimeCycleEtcSemanticInstanceComRespDto generateTimeCycleEtcSemanticInstanceComRespDto = null;
    if(calculateContentAmountComRespDto !=null){
          GenerateTimeCycleEtcSemanticInstanceComReqDto generateTimeCycleEtcSemanticInstanceComReqDto=new GenerateTimeCycleEtcSemanticInstanceComReqDto();
  generateTimeCycleEtcSemanticInstanceComReqDto.setTemplateSemanticEngineCode("CREATE_CYCLE_TYPE_CODE");//CUSTOM_CONVENTION//sourceId:399319_1_20375
if(calculateContentAmountComRespDto!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto.setAcount(calculateContentAmountComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:399320_1_20375
    }
if(reqDto!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:399321_1_20375
    }

    /*D2生成不规则周期类型标识[5030]   */
    Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getTemplateSemanticEngineCode(),"D3-4执行检查周期类型(公共)-D2生成不规则周期类型标识-模板引擎标识不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getAcount(),"D3-4执行检查周期类型(公共)-D2生成不规则周期类型标识-数量不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getCycleTypeCode(),"D3-4执行检查周期类型(公共)-D2生成不规则周期类型标识-周期类型标识不能为空",false);
      generateTimeCycleEtcSemanticInstanceComRespDto = fwCompTemplateEngineClient.generateTimeCycleEtcSemanticInstanceCom(generateTimeCycleEtcSemanticInstanceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
GenerateTimeCycleEtcSemanticInstanceComRespDto generateTimeCycleEtcSemanticInstanceComRespDto_2 = null;
    if(calculateContentAmountComRespDto !=null&&omsCycleType_2 !=null){
          GenerateTimeCycleEtcSemanticInstanceComReqDto generateTimeCycleEtcSemanticInstanceComReqDto_1=new GenerateTimeCycleEtcSemanticInstanceComReqDto();
  generateTimeCycleEtcSemanticInstanceComReqDto_1.setTemplateSemanticEngineCode("CREATE_IRREGULAR_CYCLE_TYPE_NAME");//CUSTOM_CONVENTION//sourceId:399297_1_20374
if(calculateContentAmountComRespDto!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto_1.setAcount(calculateContentAmountComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:399306_1_20374
    }
if(omsCycleType_2!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto_1.setCycleTypeName(omsCycleType_2.getCycleTypeName());//SimpleFieldAssign//sourceId:399307_1_20374
    }

    /*D2生成不规则周期类型名称[5030]   */
    Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_1.getTemplateSemanticEngineCode(),"D3-4执行检查周期类型(公共)-D2生成不规则周期类型名称-模板引擎标识不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_1.getAcount(),"D3-4执行检查周期类型(公共)-D2生成不规则周期类型名称-数量不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto_1.getCycleTypeName(),"D3-4执行检查周期类型(公共)-D2生成不规则周期类型名称-周期类型名称不能为空",false);
      generateTimeCycleEtcSemanticInstanceComRespDto_2 = fwCompTemplateEngineClient.generateTimeCycleEtcSemanticInstanceCom(generateTimeCycleEtcSemanticInstanceComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
String string = null;
    if(omsCycleType_2 !=null&&generateTimeCycleEtcSemanticInstanceComRespDto !=null&&generateTimeCycleEtcSemanticInstanceComRespDto_2 !=null&&calculateContentAmountComRespDto !=null){
          OmsCycleType omsCycleType_4=new OmsCycleType();
  omsCycleType_4.setCycleTypeStandard("CUSTOM_STANDARD");//sourceId:410675_1_20594
omsCycleType_4.setIsWorkCycleType("TRUE");//sourceId:410676_1_20594
omsCycleType_4.setCycleTypeUsage("WORK");//sourceId:410677_1_20594
omsCycleType_4.setOrderNumber(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:413388_1_20594
omsCycleType_4.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:411243_1_20594
if(omsCycleType_2!=null){
      omsCycleType_4.setCycleSystemCode(omsCycleType_2.getCycleSystemCode());//SimpleFieldAssign//sourceId:410671_1_20594
omsCycleType_4.setOperationInductionId(omsCycleType_2.getOperationInductionId());//SimpleFieldAssign//sourceId:410681_1_20594
omsCycleType_4.setCreateInductionId(omsCycleType_2.getOperationInductionId());//SimpleFieldAssign//sourceId:410682_1_20594
omsCycleType_4.setReleaseInductionId(omsCycleType_2.getOperationInductionId());//SimpleFieldAssign//sourceId:413387_1_20594
omsCycleType_4.setSpaceId(omsCycleType_2.getSpaceId());//SimpleFieldAssign//sourceId:410683_1_20594
omsCycleType_4.setAppId(omsCycleType_2.getAppId());//SimpleFieldAssign//sourceId:410684_1_20594
    }
if(generateTimeCycleEtcSemanticInstanceComRespDto!=null){
      omsCycleType_4.setCycleTypeCode(generateTimeCycleEtcSemanticInstanceComRespDto.getObjectName());//SimpleFieldAssign//sourceId:410672_1_20594
    }
if(generateTimeCycleEtcSemanticInstanceComRespDto_2!=null){
      omsCycleType_4.setCycleTypeName(generateTimeCycleEtcSemanticInstanceComRespDto_2.getObjectName());//SimpleFieldAssign//sourceId:410674_1_20594
    }
if(reqDto!=null){
      omsCycleType_4.setCustomCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1657453_1_20594
    }
if(calculateContentAmountComRespDto!=null){
      omsCycleType_4.setCustomCycleTypeNum(calculateContentAmountComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:1657477_1_20594
    }

    /*3-4-01新增自定义周期类型[5067]   */
    Assert.isNull(omsCycleType_4.getCycleSystemCode(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-周期体系类型标识不能为空",false);
Assert.isNull(omsCycleType_4.getCycleTypeCode(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-周期类型标识不能为空",false);
Assert.isNull(omsCycleType_4.getCycleTypeName(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-周期类型名称不能为空",false);
Assert.isNull(omsCycleType_4.getCustomCycleTypeCode(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-基于标准周期类型标识不能为空",false);
Assert.isNull(omsCycleType_4.getCustomCycleTypeNum(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-基于标准周期类型的数量不能为空",false);
Assert.isNull(omsCycleType_4.getCycleTypeStandard(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-周期类型标准化不能为空",false);
Assert.isNull(omsCycleType_4.getIsWorkCycleType(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-是否工作周期不能为空",false);
Assert.isNull(omsCycleType_4.getCycleTypeUsage(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-周期类型用途不能为空",false);
Assert.isNull(omsCycleType_4.getOrderNumber(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-排序不能为空",false);
Assert.isNull(omsCycleType_4.getSubjectLifeCycle(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-主体生命周期不能为空",false);
Assert.isNull(omsCycleType_4.getOperationInductionId(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-操作人就职记录ID不能为空",false);
Assert.isNull(omsCycleType_4.getCreateInductionId(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-创建人就职记录ID不能为空",false);
Assert.isNull(omsCycleType_4.getReleaseInductionId(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-发布人就职记录ID不能为空",false);
Assert.isNull(omsCycleType_4.getSpaceId(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-创建于空间ID不能为空",false);
Assert.isNull(omsCycleType_4.getAppId(),"D3-4执行检查周期类型(公共)-3-4-01新增自定义周期类型-创建于联盟应用ID不能为空",false);
      string = mOmsCycleTypeService.addCustomCycleType(omsCycleType_4)/*vcase invoke 本地 method 方法调用;*/;



           }
OmsCycleType omsCycleType_5 = null;
    if(string !=null){
          QueryCycleTypeDetailReq queryCycleTypeDetailReq_2=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:172060_1_19348
if(string!=null){
      queryCycleTypeDetailReq_2.setCycleTypeId(string);//SimpleFieldAssign//sourceId:172044_1_19348
    }

    /*3-4-01查新增周期类型[1881]   */
    Assert.isNull(queryCycleTypeDetailReq_2.getCycleTypeId(),"D3-4执行检查周期类型(公共)-3-4-01查新增周期类型-周期类型ID不能为空",false);
Assert.isNull(queryCycleTypeDetailReq_2.getSubjectLifeCycle(),"D3-4执行检查周期类型(公共)-3-4-01查新增周期类型-主体生命周期不能为空",false);
      omsCycleType_5 = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq_2)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycleType_5== null||  omsCycleType_5.getCycleTypeId() ==null,"找不到数据，系统异常",false);

      omsCycleType_6 = omsCycleType_5;
           }
String string_2 = null;
    if(omsCycleType_2 !=null&&string !=null&&omsCycleType_5 !=null&&calculateContentAmountComRespDto !=null){
          OmsCycleTypeInstanceRelationship omsCycleTypeInstanceRelationship_2=new OmsCycleTypeInstanceRelationship();
  omsCycleTypeInstanceRelationship_2.setIsInterim("FALSE");//sourceId:453453_1_22480
omsCycleTypeInstanceRelationship_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:453447_1_22480
if(omsCycleType_2!=null){
      omsCycleTypeInstanceRelationship_2.setCycleTypeId(omsCycleType_2.getCycleTypeId());//SimpleFieldAssign//sourceId:453449_1_22480
    }
if(reqDto!=null){
      omsCycleTypeInstanceRelationship_2.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:453450_1_22480
    }
if(string!=null){
      omsCycleTypeInstanceRelationship_2.setParentCycleTypeId(string);//SimpleFieldAssign//sourceId:453454_1_22480
    }
if(omsCycleType_5!=null){
      omsCycleTypeInstanceRelationship_2.setRelationCycleTypeCode(omsCycleType_5.getCycleTypeCode());//SimpleFieldAssign//sourceId:453451_1_22480
    }
if(calculateContentAmountComRespDto!=null){
      omsCycleTypeInstanceRelationship_2.setSubCycleNumber(calculateContentAmountComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:453452_1_22480
    }

    /*3-4-03新增工作周期类型关系[1871]   */
    Assert.isNull(omsCycleTypeInstanceRelationship_2.getCycleTypeId(),"D3-4执行检查周期类型(公共)-3-4-03新增工作周期类型关系-周期类型ID不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship_2.getCycleTypeCode(),"D3-4执行检查周期类型(公共)-3-4-03新增工作周期类型关系-周期类型标识不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship_2.getParentCycleTypeId(),"D3-4执行检查周期类型(公共)-3-4-03新增工作周期类型关系-关联上级周期类型ID不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship_2.getRelationCycleTypeCode(),"D3-4执行检查周期类型(公共)-3-4-03新增工作周期类型关系-关联上级周期类型标识不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship_2.getSubCycleNumber(),"D3-4执行检查周期类型(公共)-3-4-03新增工作周期类型关系-周期数量不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship_2.getIsInterim(),"D3-4执行检查周期类型(公共)-3-4-03新增工作周期类型关系-是否中期不能为空",false);
Assert.isNull(omsCycleTypeInstanceRelationship_2.getSubjectLifeCycle(),"D3-4执行检查周期类型(公共)-3-4-03新增工作周期类型关系-主体生命周期不能为空",false);
      string_2 = mOmsCycleTypeInstanceRelationshipService.addCycleTypeInstanceRelationship(omsCycleTypeInstanceRelationship_2)/*vcase invoke 本地 method 方法调用;*/;



           }
    }
ImplementCheckCycleTypeComRespDto retData = new ImplementCheckCycleTypeComRespDto();
  if(omsCycleType_1!=null){
      retData.setCycleTypeId(omsCycleType_1.getCycleTypeId());//SimpleFieldAssign//sourceId:172062_1
retData.setCycleTypeCode(omsCycleType_1.getCycleTypeCode());//SimpleFieldAssign//sourceId:172063_1
retData.setCycleTypeName(omsCycleType_1.getCycleTypeName());//SimpleFieldAssign//sourceId:172064_1
retData.setCycleTypeStandard(omsCycleType_1.getCycleTypeStandard());//SimpleFieldAssign//sourceId:172065_1
retData.setCycleSystemCode(omsCycleType_1.getCycleSystemCode());//SimpleFieldAssign//sourceId:172066_1
    }
if(omsCycleType_6!=null){
      retData.setCycleTypeId(omsCycleType_6.getCycleTypeId());//SimpleFieldAssign//sourceId:172062_1
retData.setCycleTypeCode(omsCycleType_6.getCycleTypeCode());//SimpleFieldAssign//sourceId:172063_1
retData.setCycleTypeName(omsCycleType_6.getCycleTypeName());//SimpleFieldAssign//sourceId:172064_1
retData.setCycleTypeStandard(omsCycleType_6.getCycleTypeStandard());//SimpleFieldAssign//sourceId:172065_1
retData.setCycleSystemCode(omsCycleType_6.getCycleSystemCode());//SimpleFieldAssign//sourceId:172066_1
    }




return retData;
  }
/**
   * D3-查询租户周期列表[5283]
   * gen by moon at 5/23/2023, 8:21:10 PM
   */
  @Trace(operationName = "D3-查询租户周期列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryTenantCycleListRespDto queryTenantCycleList(QueryTenantCycleListReqDto reqDto){


      List<OmsCycle> listOmsCycle_1 =new ArrayList<>();
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 =null;
//virtualUsage M3传输租户周期管理导航约定值  22586
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setComTxtField(reqDto.getComTxtField());//SimpleFieldAssign//sourceId:456924_1_22586
    }

    /*M3传输租户周期管理导航约定值[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getComTxtField(),"D3-查询租户周期列表-M3传输租户周期管理导航约定值-通用文本字段不能为空",false);
      receptionServiceRes = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getComTxtField() !=null && reqDto.getComTxtField().equals("BASE_CYCLE"))) {
        //if(D3查询租户周期列表.租户周期关联导航约定值 等于 基础周期)  22587

QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setConfItemCode("SPACE_ENABLE_CUSTOM_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:456545_1_22588
queryConfItemMatchAnswerListComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:456547_1_22588
queryConfItemMatchAnswerListComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:456546_1_22588
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:456548_1_22588

    /*D2-3查询空间下启用自定义周期类型列表[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"D3-查询租户周期列表-D2-3查询空间下启用自定义周期类型列表-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"D3-查询租户周期列表-D2-3查询空间下启用自定义周期类型列表-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"D3-查询租户周期列表-D2-3查询空间下启用自定义周期类型列表-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"D3-查询租户周期列表-D2-3查询空间下启用自定义周期类型列表-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_2 = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto_1=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto_1.setConfItemCode("SPACE_CREATE_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:456590_1_22589
queryConfItemMatchAnswerListComReqDto_1.setConfSchemeCode("COM_CONF_SCHEME");//CUSTOM_CONVENTION//sourceId:456591_1_22589
queryConfItemMatchAnswerListComReqDto_1.setIsPlatData("TRUE");//sourceId:456592_1_22589

    /*D2-3查询平台配置租户生成周期类型[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getConfItemCode(),"D3-查询租户周期列表-D2-3查询平台配置租户生成周期类型-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getConfSchemeCode(),"D3-查询租户周期列表-D2-3查询平台配置租户生成周期类型-配置方案标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getIsPlatData(),"D3-查询租户周期列表-D2-3查询平台配置租户生成周期类型-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto_2 = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



//ModelCode: collectionsIntersectionsData
        ObtainCollectionsIntersectionsDataRespDto collectionsIntersectionsDataRes = null;
    if(queryConfItemMatchAnswerListComRespDto_2 !=null&&queryConfItemMatchAnswerListComRespDto !=null){
          ObtainCollectionsIntersectionsDataReqDto collectionsIntersectionsDataReq=new ObtainCollectionsIntersectionsDataReqDto();
  if(queryConfItemMatchAnswerListComRespDto_2!= null&&  queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList())){
      collectionsIntersectionsDataReq.setCollectionsIntersectionsDataAList(queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList().stream().map(item->item.getEndValue())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:456595_1_22590
    }
if(queryConfItemMatchAnswerListComRespDto!= null&&  queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList())){
      collectionsIntersectionsDataReq.setCollectionsIntersectionsDataBList(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().stream().map(item->item.getEndValue())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:456596_1_22590
    }

    /*M3-获取数据集交集（查询租户启用周期类型与特殊周期类型都存在的周期类型）[4973]  入参两个数据集，求两个数据集中共同存在的部分输出 */

      collectionsIntersectionsDataRes = nbCycleType.obtainCollectionsIntersectionsData(collectionsIntersectionsDataReq);



           }
List<OmsCycle> listOmsCycle =new ArrayList<>();
    BatchQueryCycleByCycCodeReq batchQueryCycleByCycCodeReq=new BatchQueryCycleByCycCodeReq();
batchQueryCycleByCycCodeReq.setPlatformData("FALSE");//sourceId:456800_1_22613
batchQueryCycleByCycCodeReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:456799_1_22613
if(collectionsIntersectionsDataRes!=null){
      batchQueryCycleByCycCodeReq.setCycleList(collectionsIntersectionsDataRes.getCollectionsIntersectionsDataList());//list-field-assign//sourceId:456794_1_22613
    }
if(reqDto!=null){
      batchQueryCycleByCycCodeReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:456795_1_22613
    }

    /*3-4-04批量查周期列表By类型Code[2491]   */
    Assert.isNull(batchQueryCycleByCycCodeReq.getSubjectLifeCycle(),"D3-查询租户周期列表-3-4-04批量查周期列表By类型Code-主体生命周期不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq.getPlatformData(),"D3-查询租户周期列表-3-4-04批量查周期列表By类型Code-是否是平台不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq.getSpaceId(),"D3-查询租户周期列表-3-4-04批量查周期列表By类型Code-创建于空间ID不能为空",false);
      listOmsCycle = mOmsCycleService.batchQueryCycleByCycCode(batchQueryCycleByCycCodeReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsCycle_1 = listOmsCycle;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)&& listOmsCycle.size()>0 ){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
  if(listOmsCycle!= null&& !CollectionUtil.isEmpty(listOmsCycle)&&  listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)){
  batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(listOmsCycle.stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:456809_1_22618
    }

    /*D1-3批量查询就职记录列表（公共）[602]   */

      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }
      }
else if((reqDto!= null&&  reqDto.getComTxtField() !=null && reqDto.getComTxtField().equals("CUSTOM_CYCLE"))){
       //elseif(D3查询租户周期列表.租户周期关联导航约定值 等于 自定义周期)  22591

//ModelCode: columnToRow
        ImplementColumnToRowRespDto columnToRowRes = null;
    ImplementColumnToRowReqDto columnToRowReq=new ImplementColumnToRowReqDto();
  columnToRowReq.setCustomField1("CUSTOM_WORK_CYCLE");//CUSTOM_CONVENTION//sourceId:456711_1_22602
columnToRowReq.setCustomField2("CUSTOM_HOLIDAYS");//CUSTOM_CONVENTION//sourceId:456712_1_22602

    /*M3-执行列转行（字段转数据集）[4982]  将多列数据转成一行数据 */
    Assert.isNull(columnToRowReq.getCustomField1(),"D3-查询租户周期列表-M3-执行列转行（字段转数据集）-自定义字段1不能为空",false);
Assert.isNull(columnToRowReq.getCustomField2(),"D3-查询租户周期列表-M3-执行列转行（字段转数据集）-自定义字段2不能为空",false);
      columnToRowRes = nbCycleType.implementColumnToRow(columnToRowReq);



List<OmsCycle> listOmsCycle_2 =new ArrayList<>();
    BatchQueryCycleByCycCodeReq batchQueryCycleByCycCodeReq_1=new BatchQueryCycleByCycCodeReq();
batchQueryCycleByCycCodeReq_1.setPlatformData("FALSE");//sourceId:456800_1_22614
batchQueryCycleByCycCodeReq_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:456799_1_22614
if(columnToRowRes!=null){
      batchQueryCycleByCycCodeReq_1.setCycleList(columnToRowRes.getCollectionsAggregationList());//list-field-assign//sourceId:456794_1_22614
    }
if(reqDto!=null){
      batchQueryCycleByCycCodeReq_1.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:456795_1_22614
    }

    /*3-4-04批量查周期列表By类型Code[2491]   */
    Assert.isNull(batchQueryCycleByCycCodeReq_1.getSubjectLifeCycle(),"D3-查询租户周期列表-3-4-04批量查周期列表By类型Code-主体生命周期不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq_1.getPlatformData(),"D3-查询租户周期列表-3-4-04批量查周期列表By类型Code-是否是平台不能为空",false);
Assert.isNull(batchQueryCycleByCycCodeReq_1.getSpaceId(),"D3-查询租户周期列表-3-4-04批量查周期列表By类型Code-创建于空间ID不能为空",false);
      listOmsCycle_2 = mOmsCycleService.batchQueryCycleByCycCode(batchQueryCycleByCycCodeReq_1)/*vcase invoke 本地 method 方法调用;*/;


      listOmsCycle_1 = listOmsCycle_2;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_2 = null;
    if(listOmsCycle_2 !=null&& !CollectionUtil.isEmpty(listOmsCycle_2)&& listOmsCycle_2.size()>0 ){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto_1=new BatchQueryInductionRecordListComReqDto();
  if(listOmsCycle_2!= null&& !CollectionUtil.isEmpty(listOmsCycle_2)&&  listOmsCycle_2 !=null&& !CollectionUtil.isEmpty(listOmsCycle_2)){
  batchQueryInductionRecordListComReqDto_1.setPerOrgInductionRecordList(listOmsCycle_2.stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:456809_1_22619
    }

    /*D1-3批量查询就职记录列表（公共）[602]   */

      batchQueryInductionRecordListComRespDto_2 = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto_2;
           }
    }
QueryTenantCycleListRespDto retData = new QueryTenantCycleListRespDto();
  //数据集融合  MoreListToOneSource
        if(listOmsCycle_1!= null&& !CollectionUtil.isEmpty(listOmsCycle_1) && !CollectionUtil.isEmpty(listOmsCycle_1) ){
          for (OmsCycle omsCycle : listOmsCycle_1) {
              CycleDto retElm = new CycleDto();
             retElm.setCycleId(omsCycle.getCycleId());//SimpleFieldAssign//sourceId:122869_2
retElm.setCycleStandardName(omsCycle.getCycleStandardName());//SimpleFieldAssign//sourceId:122870_2
retElm.setCycleStartTime(omsCycle.getCycleStartTime());//SimpleFieldAssign//sourceId:122871_2
retElm.setCycleEndTime(omsCycle.getCycleEndTime());//SimpleFieldAssign//sourceId:122872_2
retElm.setSubjectLifeCycle(omsCycle.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:122874_2
retElm.setOperationInductionId(omsCycle.getOperationInductionId());//SimpleFieldAssign//sourceId:122873_2
retElm.setOperateTime(omsCycle.getOperateTime());//SimpleFieldAssign//sourceId:122875_2
              retData.getCycleList().add(retElm);
               if(batchQueryInductionRecordListComRespDto_1!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(omsCycle.getOperationInductionId())) {
                 if(batchQueryInductionRecordListComRespDto_1!=null){
      retElm.setUserId(perOrgInductionRecordDto.getUserId());//SimpleFieldAssign//sourceId:122876_2
retElm.setUserFace(perOrgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:122879_2
retElm.setIdCardName(perOrgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:122877_2
retElm.setNickName(perOrgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:122878_2
    }
                }
            }
          }

          }
        }//sourceId:456818_1




return retData;
  }
/**
   * D3查询租户周期类型列表[5290]
   * gen by moon at 11/26/2022, 6:24:40 PM
   */
  @Trace(operationName = "D3查询租户周期类型列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryTenantCycleTypeListRespDto queryTenantCycleTypeList(QueryTenantCycleTypeListReqDto reqDto){


      List<OmsCycleType> listOmsCycleType_1 =new ArrayList<>();
//virtualUsage M3传输租户周期管理导航约定值  22641
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setComTxtField(reqDto.getComTxtField());//SimpleFieldAssign//sourceId:458369_1_22641
    }

    /*M3传输租户周期管理导航约定值[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getComTxtField(),"D3查询租户周期类型列表-M3传输租户周期管理导航约定值-通用文本字段不能为空",false);
      receptionServiceRes = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getComTxtField() !=null && reqDto.getComTxtField().equals("BASE_CYCLE"))) {
        //if(D3查询租户周期类型列表.通用文本字段 等于 基础周期)  22642

QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setConfItemCode("SPACE_ENABLE_CUSTOM_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:457737_1_22644
queryConfItemMatchAnswerListComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:457739_1_22644
queryConfItemMatchAnswerListComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:457738_1_22644
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:457740_1_22644

    /*D2-3查询空间下启用自定义周期类型列表[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"D3查询租户周期类型列表-D2-3查询空间下启用自定义周期类型列表-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"D3查询租户周期类型列表-D2-3查询空间下启用自定义周期类型列表-答案归属对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"D3查询租户周期类型列表-D2-3查询空间下启用自定义周期类型列表-答案归属对象类型不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"D3查询租户周期类型列表-D2-3查询空间下启用自定义周期类型列表-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData();



QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_2 = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto_1=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto_1.setConfItemCode("SPACE_CREATE_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:457756_1_22647
queryConfItemMatchAnswerListComReqDto_1.setConfSchemeCode("COM_CONF_SCHEME");//CUSTOM_CONVENTION//sourceId:457755_1_22647
queryConfItemMatchAnswerListComReqDto_1.setIsPlatData("TRUE");//sourceId:457759_1_22647

    /*D2-3查询平台配置租户生成周期类型[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getConfItemCode(),"D3查询租户周期类型列表-D2-3查询平台配置租户生成周期类型-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getConfSchemeCode(),"D3查询租户周期类型列表-D2-3查询平台配置租户生成周期类型-配置方案标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getIsPlatData(),"D3查询租户周期类型列表-D2-3查询平台配置租户生成周期类型-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto_2 = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto_1).getData();



//ModelCode: collectionsIntersectionsData
        ObtainCollectionsIntersectionsDataRespDto collectionsIntersectionsDataRes = null;
    if(queryConfItemMatchAnswerListComRespDto_2 !=null&&queryConfItemMatchAnswerListComRespDto !=null){
          ObtainCollectionsIntersectionsDataReqDto collectionsIntersectionsDataReq=new ObtainCollectionsIntersectionsDataReqDto();
  if(queryConfItemMatchAnswerListComRespDto_2!=null){
      collectionsIntersectionsDataReq.setCollectionsIntersectionsDataAList(queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList().stream().map(item->item.getEndValue())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:457763_1_22649
    }
if(queryConfItemMatchAnswerListComRespDto!=null){
      collectionsIntersectionsDataReq.setCollectionsIntersectionsDataBList(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().stream().map(item->item.getEndValue())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:457764_1_22649
    }

    /*M3-获取数据集交集（查询租户启用周期类型与特殊周期类型都存在的周期类型）[4973]  入参两个数据集，求两个数据集中共同存在的部分输出 */

      collectionsIntersectionsDataRes = nbCycleType.obtainCollectionsIntersectionsData(collectionsIntersectionsDataReq);



           }
List<OmsCycleType> listOmsCycleType =new ArrayList<>();
    BatchQueryTenantCycleTypeReq batchQueryTenantCycleTypeReq=new BatchQueryTenantCycleTypeReq();
  batchQueryTenantCycleTypeReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:458457_1_22653
if(collectionsIntersectionsDataRes!=null){
      batchQueryTenantCycleTypeReq.setTenantCycleTypeList(collectionsIntersectionsDataRes.getCollectionsIntersectionsDataList());//list-field-assign//sourceId:458456_1_22653
    }

    /*3-4-02批量查询租户周期类型byCode[5291]   */
    Assert.isNull(batchQueryTenantCycleTypeReq.getSubjectLifeCycle(),"D3查询租户周期类型列表-3-4-02批量查询租户周期类型byCode-主体生命周期不能为空",false);
      listOmsCycleType = mOmsCycleTypeService.batchQueryTenantCycleType(batchQueryTenantCycleTypeReq);
      Assert.isTrue(listOmsCycleType== null|| CollectionUtil.isEmpty(listOmsCycleType)||  listOmsCycleType ==null|| CollectionUtil.isEmpty(listOmsCycleType)|| listOmsCycleType.size()==0 ,"找不到数据，系统异常",false);

      listOmsCycleType_1 = listOmsCycleType;
      }
else if((reqDto!= null&&  reqDto.getComTxtField() !=null && reqDto.getComTxtField().equals("CUSTOM_CYCLE"))){
       //elseif(D3查询租户周期类型列表.通用文本字段 等于 自定义周期)  22643

//ModelCode: columnToRow
        ImplementColumnToRowRespDto columnToRowRes = null;
    ImplementColumnToRowReqDto columnToRowReq=new ImplementColumnToRowReqDto();
  columnToRowReq.setCustomField1("CUSTOM_WORK_CYCLE");//CUSTOM_CONVENTION//sourceId:457768_1_22651
columnToRowReq.setCustomField2("CUSTOM_HOLIDAYS");//CUSTOM_CONVENTION//sourceId:457769_1_22651

    /*M3-自定义工作周期与自定义节假日行转列（字段转数据集）[4982]  将多列数据转成一行数据 */
    Assert.isNull(columnToRowReq.getCustomField1(),"D3查询租户周期类型列表-M3-自定义工作周期与自定义节假日行转列（字段转数据集）-自定义字段1不能为空",false);
Assert.isNull(columnToRowReq.getCustomField2(),"D3查询租户周期类型列表-M3-自定义工作周期与自定义节假日行转列（字段转数据集）-自定义字段2不能为空",false);
      columnToRowRes = nbCycleType.implementColumnToRow(columnToRowReq);



List<OmsCycleType> listOmsCycleType_2 =new ArrayList<>();
    BatchQueryTenantCycleTypeReq batchQueryTenantCycleTypeReq_1=new BatchQueryTenantCycleTypeReq();
  batchQueryTenantCycleTypeReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:458457_1_22654
if(columnToRowRes!=null){
      batchQueryTenantCycleTypeReq_1.setTenantCycleTypeList(columnToRowRes.getCollectionsAggregationList());//list-field-assign//sourceId:458456_1_22654
    }

    /*3-4-02批量查询租户周期类型byCode[5291]   */
    Assert.isNull(batchQueryTenantCycleTypeReq_1.getSubjectLifeCycle(),"D3查询租户周期类型列表-3-4-02批量查询租户周期类型byCode-主体生命周期不能为空",false);
      listOmsCycleType_2 = mOmsCycleTypeService.batchQueryTenantCycleType(batchQueryTenantCycleTypeReq_1);
      Assert.isTrue(listOmsCycleType_2== null|| CollectionUtil.isEmpty(listOmsCycleType_2)||  listOmsCycleType_2 ==null|| CollectionUtil.isEmpty(listOmsCycleType_2)|| listOmsCycleType_2.size()==0 ,"找不到数据，系统异常",false);

      listOmsCycleType_1 = listOmsCycleType_2;
    }
QueryTenantCycleTypeListRespDto retData = new QueryTenantCycleTypeListRespDto();
  retData.setTenantCycleTypeList(listOmsCycleType_1.stream().map(item -> BeanUtil.toBean(item, TenantCycleTypeDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:458459_1




return retData;
  }
/**
   * D3删除租户周期[5295]
   * gen by moon at 12/3/2022, 8:18:09 PM
   */
  @Trace(operationName = "D3删除租户周期")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public DeleteTenantCycleRespDto deleteTenantCycle(DeleteTenantCycleReqDto reqDto){


      //步骤0: 3-4-04查询周期详情 - queryCycleDetail
     OmsCycle omsCycle = null;
    QueryCycleDetailReq queryCycleDetailReq=new QueryCycleDetailReq();
  queryCycleDetailReq.setPlatformData("FALSE");//sourceId:484182_1
queryCycleDetailReq.setCycleTypeStandard("IRREGULAR");//sourceId:484184_1
  queryCycleDetailReq.setSubjectLifeCycle("EDITING");//sourceId:458497_1
if(reqDto!=null){
      queryCycleDetailReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:458496_1
queryCycleDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:458518_1
    }

    /*3-4-04查询周期详情[2004]   */
    Assert.isNull(queryCycleDetailReq.getCycleId(),"D3删除租户周期-3-4-04查询周期详情-周期ID不能为空",false);
Assert.isNull(queryCycleDetailReq.getPlatformData(),"D3删除租户周期-3-4-04查询周期详情-是否是平台不能为空",false);
Assert.isNull(queryCycleDetailReq.getCycleTypeStandard(),"D3删除租户周期-3-4-04查询周期详情-冗余周期类型标准化不能为空",false);
Assert.isNull(queryCycleDetailReq.getSubjectLifeCycle(),"D3删除租户周期-3-4-04查询周期详情-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryCycleDetail(queryCycleDetailReq);
      Assert.isTrue(omsCycle== null||  omsCycle.getCycleId() ==null,"找不到数据，系统异常",false);



//步骤1: 3-4-04删除周期 - deleteCycle
     boolean bOOLEAN ;
    if(omsCycle !=null){
          String string=new String();
  if(omsCycle!=null){
      string=omsCycle.getCycleId();;//SimpleFieldAssign//sourceId:458523_1
    }

    /*3-4-04删除周期[2005]   */
    Assert.isNull(string,"D3删除租户周期-3-4-04删除周期-周期ID不能为空",false);
      bOOLEAN = mOmsCycleService.deleteCycle(string);



           }

//步骤2: 3-4-04查询周期内周期列表 - queryCycleWithinCycleList
     List<OmsCycle> listOmsCycle =new ArrayList<>();
    if(omsCycle !=null){
          QueryCycleWithinCycleListReq queryCycleWithinCycleListReq=new QueryCycleWithinCycleListReq();
  queryCycleWithinCycleListReq.setCycleTypeCode("CUSTOM_WEEKDAY");//CUSTOM_CONVENTION//sourceId:484212_1
queryCycleWithinCycleListReq.setPlatformData("FALSE");//sourceId:484211_1
queryCycleWithinCycleListReq.setCycleTypeStandard("IRREGULAR");//sourceId:484192_1
queryCycleWithinCycleListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:484190_1
if(omsCycle!=null){
      queryCycleWithinCycleListReq.setCycleStartTime(omsCycle.getCycleStartTime());//SimpleFieldAssign//sourceId:484186_1
queryCycleWithinCycleListReq.setCycleEndTime(omsCycle.getCycleEndTime());//SimpleFieldAssign//sourceId:484187_1
    }

    /*3-4-04查询租户自定义工作日周期列表[5341]   */
    Assert.isNull(queryCycleWithinCycleListReq.getCycleStartTime(),"D3删除租户周期-3-4-04查询租户自定义工作日周期列表-周期开始时间不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq.getCycleEndTime(),"D3删除租户周期-3-4-04查询租户自定义工作日周期列表-周期结束时间不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq.getCycleTypeCode(),"D3删除租户周期-3-4-04查询租户自定义工作日周期列表-周期类型标识不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq.getPlatformData(),"D3删除租户周期-3-4-04查询租户自定义工作日周期列表-是否是平台不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq.getCycleTypeStandard(),"D3删除租户周期-3-4-04查询租户自定义工作日周期列表-冗余周期类型标准化不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq.getSpaceId(),"D3删除租户周期-3-4-04查询租户自定义工作日周期列表-创建于空间ID不能为空",false);
      listOmsCycle = mOmsCycleService.queryCycleWithinCycleList(queryCycleWithinCycleListReq);



           }

//步骤3: 3-4-04查询周期内周期列表 - queryCycleWithinCycleList
     List<OmsCycle> listOmsCycle_2 =new ArrayList<>();
    if(omsCycle !=null){
          QueryCycleWithinCycleListReq queryCycleWithinCycleListReq_1=new QueryCycleWithinCycleListReq();
  queryCycleWithinCycleListReq_1.setCycleTypeCode("CUSTOM_HOLIDAY");//CUSTOM_CONVENTION//sourceId:484215_1
queryCycleWithinCycleListReq_1.setCycleTypeStandard("IRREGULAR");//sourceId:484219_1
queryCycleWithinCycleListReq_1.setPlatformData("FALSE");//sourceId:484220_1
queryCycleWithinCycleListReq_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:484217_1
if(omsCycle!=null){
      queryCycleWithinCycleListReq_1.setCycleStartTime(omsCycle.getCycleStartTime());//SimpleFieldAssign//sourceId:484213_1
queryCycleWithinCycleListReq_1.setCycleEndTime(omsCycle.getCycleEndTime());//SimpleFieldAssign//sourceId:484214_1
    }

    /*3-4-04查询租户自定义节假日周期列表[5341]   */
    Assert.isNull(queryCycleWithinCycleListReq_1.getCycleStartTime(),"D3删除租户周期-3-4-04查询租户自定义节假日周期列表-周期开始时间不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq_1.getCycleEndTime(),"D3删除租户周期-3-4-04查询租户自定义节假日周期列表-周期结束时间不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq_1.getCycleTypeCode(),"D3删除租户周期-3-4-04查询租户自定义节假日周期列表-周期类型标识不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq_1.getCycleTypeStandard(),"D3删除租户周期-3-4-04查询租户自定义节假日周期列表-冗余周期类型标准化不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq_1.getPlatformData(),"D3删除租户周期-3-4-04查询租户自定义节假日周期列表-是否是平台不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq_1.getSpaceId(),"D3删除租户周期-3-4-04查询租户自定义节假日周期列表-创建于空间ID不能为空",false);
      listOmsCycle_2 = mOmsCycleService.queryCycleWithinCycleList(queryCycleWithinCycleListReq_1);



           }

//步骤4: 3-4-04批量删周期 - batchDeleteCycle
     boolean bOOLEAN_1 ;
    if(listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)&& listOmsCycle.size()>0 ){
          List<String> listString=new ArrayList<>();
  listString = listOmsCycle.stream().map(item->item.getCycleId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:484185_1

    /*3-4-04批量删租户自定义工作日周期[5383]   */

      bOOLEAN_1 = mOmsCycleService.batchDeleteCycle(listString);



           }

//步骤5: 3-4-04批量删周期 - batchDeleteCycle
     boolean bOOLEAN_2 ;
    if(listOmsCycle_2 !=null&& !CollectionUtil.isEmpty(listOmsCycle_2)&& listOmsCycle_2.size()>0 ){
          List<String> listString_1=new ArrayList<>();
  listString_1 = listOmsCycle_2.stream().map(item->item.getCycleId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:484226_1

    /*3-4-04批量删租户自定义节假日周期[5383]   */

      bOOLEAN_2 = mOmsCycleService.batchDeleteCycle(listString_1);



           }

DeleteTenantCycleRespDto retData = new DeleteTenantCycleRespDto();





return retData;
  }
/**
   * D3查询租户周期导航列表[5298]
   * gen by moon at 5/16/2023, 12:18:01 AM
   */
  @Trace(operationName = "D3查询租户周期导航列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryTenantCycleNavigationListRespDto queryTenantCycleNavigationList(QueryTenantCycleNavigationListReqDto reqDto){


      ObtainReceiveFieldRespDto receptionServiceRes_3 =null;
//virtualUsage D2-3查询平台配置租户生成周期类型  22676
      QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setConfItemCode("SPACE_CREATE_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:458936_1_22676
queryConfItemMatchAnswerListComReqDto.setConfSchemeCode("COM_CONF_SCHEME");//CUSTOM_CONVENTION//sourceId:458992_1_22676
queryConfItemMatchAnswerListComReqDto.setIsPlatData("TRUE");//sourceId:458939_1_22676

    /*D2-3查询平台配置租户生成周期类型[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"D3查询租户周期导航列表-D2-3查询平台配置租户生成周期类型-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfSchemeCode(),"D3查询租户周期导航列表-D2-3查询平台配置租户生成周期类型-配置方案标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"D3查询租户周期导航列表-D2-3查询平台配置租户生成周期类型-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



//virtualUsage D2-3查询空间下启用自定义周期类型列表  22677
      QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_2 = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto_1=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto_1.setConfItemCode("SPACE_ENABLE_CUSTOM_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:458928_1_22677
queryConfItemMatchAnswerListComReqDto_1.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:458930_1_22677
queryConfItemMatchAnswerListComReqDto_1.setResultAspObjType("TENANT_SPACE");//sourceId:458929_1_22677
queryConfItemMatchAnswerListComReqDto_1.setIsPlatData("FALSE");//sourceId:458931_1_22677

    /*D2-3查询空间下启用自定义周期类型列表[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getConfItemCode(),"D3查询租户周期导航列表-D2-3查询空间下启用自定义周期类型列表-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getResultAspObjId(),"D3查询租户周期导航列表-D2-3查询空间下启用自定义周期类型列表-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getResultAspObjType(),"D3查询租户周期导航列表-D2-3查询空间下启用自定义周期类型列表-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getIsPlatData(),"D3查询租户周期导航列表-D2-3查询空间下启用自定义周期类型列表-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto_2 = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



//virtualUsage M3-获取数据集交集（公共特殊方法）  22678
      //ModelCode: collectionsIntersectionsData
        ObtainCollectionsIntersectionsDataRespDto collectionsIntersectionsDataRes = null;
    if(queryConfItemMatchAnswerListComRespDto !=null&&queryConfItemMatchAnswerListComRespDto_2 !=null){
          ObtainCollectionsIntersectionsDataReqDto collectionsIntersectionsDataReq=new ObtainCollectionsIntersectionsDataReqDto();
  if(queryConfItemMatchAnswerListComRespDto!= null&&  queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList())){
      collectionsIntersectionsDataReq.setCollectionsIntersectionsDataAList(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().stream().map(item->item.getEndValue())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:458952_1_22678
    }
if(queryConfItemMatchAnswerListComRespDto_2!= null&&  queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList())){
      collectionsIntersectionsDataReq.setCollectionsIntersectionsDataBList(queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList().stream().map(item->item.getEndValue())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:458953_1_22678
    }

    /*M3-获取数据集交集（公共特殊方法）[4973]  入参两个数据集，求两个数据集中共同存在的部分输出 */

      collectionsIntersectionsDataRes = nbCycleType.obtainCollectionsIntersectionsData(collectionsIntersectionsDataReq);



           }
//virtualUsage M3-约定值0和1：区分租户导航菜单是否展示基础周期  41749
      //ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes = null;
    ObtainReceiveFieldReqDto receptionServiceReq=new ObtainReceiveFieldReqDto();
  receptionServiceReq.setCustomField1("0");//CUSTOM_CONVENTION//sourceId:943648_1_41749
receptionServiceReq.setCustomField2("1");//CUSTOM_CONVENTION//sourceId:943649_1_41749

    /*M3-约定值0和1：区分租户导航菜单是否展示基础周期[2451]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCustomField1(),"D3查询租户周期导航列表-M3-约定值0和1：区分租户导航菜单是否展示基础周期-自定义字段1不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField2(),"D3查询租户周期导航列表-M3-约定值0和1：区分租户导航菜单是否展示基础周期-自定义字段2不能为空",false);
      receptionServiceRes = nbCycleType.obtainReceiveField(receptionServiceReq);



if((collectionsIntersectionsDataRes!= null&&  collectionsIntersectionsDataRes.getCollectionsIntersectionsDataList() !=null && collectionsIntersectionsDataRes.getCollectionsIntersectionsDataList().size()>0)) {
        //if(M3-获取数据集交集（公共特殊方法）.数据集交集列表数据集条数 大于 0)  22679

//ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes_2 = null;
    ObtainReceiveFieldReqDto receptionServiceReq_1=new ObtainReceiveFieldReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_1.setCustomField(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:944900_1_41779
    }

    /*M3-接收租户导航菜单是否展示基础周期0或1[2451]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getCustomField(),"D3查询租户周期导航列表-M3-接收租户导航菜单是否展示基础周期0或1-自定义字段不能为空",false);
      receptionServiceRes_2 = nbCycleType.obtainReceiveField(receptionServiceReq_1);


      receptionServiceRes_3 = receptionServiceRes_2;
//processBranchName:正常结束 ,processBranchId:22683

      }
else if((collectionsIntersectionsDataRes!= null&&  collectionsIntersectionsDataRes.getCollectionsIntersectionsDataList() !=null && collectionsIntersectionsDataRes.getCollectionsIntersectionsDataList().size()==0)){
       //elseif(M3-获取数据集交集（公共特殊方法）.数据集交集列表数据集条数 等于 0)  22680

//ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes_4 = null;
    ObtainReceiveFieldReqDto receptionServiceReq_2=new ObtainReceiveFieldReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_2.setCustomField(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:944900_1_41780
    }

    /*M3-接收租户导航菜单是否展示基础周期0或1[2451]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getCustomField(),"D3查询租户周期导航列表-M3-接收租户导航菜单是否展示基础周期0或1-自定义字段不能为空",false);
      receptionServiceRes_4 = nbCycleType.obtainReceiveField(receptionServiceReq_2);


      receptionServiceRes_3 = receptionServiceRes_4;
//processBranchName:正常结束 ,processBranchId:22684

    }
QueryTenantCycleNavigationListRespDto retData = new QueryTenantCycleNavigationListRespDto();
  if(receptionServiceRes_3!=null){
      retData.setCustomField(receptionServiceRes_3.getCustomField());//SimpleFieldAssign//sourceId:944906_1
      }




return retData;
  }
/**
   * D3查询租户节假日设置列表[5314]
   * gen by moon at 11/29/2022, 11:19:21 AM
   */
  @Trace(operationName = "D3查询租户节假日设置列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryTenantHolidaySetListRespDto queryTenantHolidaySetList(QueryTenantHolidaySetListReqDto reqDto){


      List<OmsReportHolidayHandlingStrategy> listOmsReportHolidayHandlingStrategy_1 =new ArrayList<>();
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 =null;
//步骤0: 3-4-06查询租户节假日设置列表 - queryTenantHolidaySetList
     List<OmsReportHolidayHandlingStrategy> listOmsReportHolidayHandlingStrategy =new ArrayList<>();
    QueryTenantHolidaySetListReq queryTenantHolidaySetListReq=new QueryTenantHolidaySetListReq();
  queryTenantHolidaySetListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:462818_1

    /*3-4-06查询租户节假日设置列表[5310]   */
    Assert.isNull(queryTenantHolidaySetListReq.getSpaceId(),"D3查询租户节假日设置列表-3-4-06查询租户节假日设置列表-创建于空间ID不能为空",false);
      listOmsReportHolidayHandlingStrategy = mOmsReportHolidayHandlingStrategyService.queryTenantHolidaySetList(queryTenantHolidaySetListReq);


      listOmsReportHolidayHandlingStrategy_1 = listOmsReportHolidayHandlingStrategy;

//步骤1: D1-3批量查询就职记录列表（公共） - batchQueryInductionRecordListCom
     BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(listOmsReportHolidayHandlingStrategy !=null&& !CollectionUtil.isEmpty(listOmsReportHolidayHandlingStrategy)&& listOmsReportHolidayHandlingStrategy.size()>0 ){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
  batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(listOmsReportHolidayHandlingStrategy.stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:462833_1

    /*D1-3批量查询就职记录列表（公共）[602]   */

      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData();


      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }

QueryTenantHolidaySetListRespDto retData = new QueryTenantHolidaySetListRespDto();
  //todo master集合数量为0,请联系业务设计人员检查,是否设置了master集合?;关联关系如下:retData.getTenantHolidaySetList().setHolidayStrategyId(listOmsReportHolidayHandlingStrategy_1.getHolidayStrategyId());retData.getTenantHolidaySetList().setHolidayCycleType(listOmsReportHolidayHandlingStrategy_1.getHolidayCycleType());retData.getTenantHolidaySetList().setReportTimeHandlingStrategy(listOmsReportHolidayHandlingStrategy_1.getReportTimeHandlingStrategy());retData.getTenantHolidaySetList().setSubjectLifeCycle(listOmsReportHolidayHandlingStrategy_1.getSubjectLifeCycle());retData.getTenantHolidaySetList().setOperationInductionId(listOmsReportHolidayHandlingStrategy_1.getOperationInductionId());retData.getTenantHolidaySetList().setUserId(batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList().getUserId());retData.getTenantHolidaySetList().setUserFace(batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList().getUserFace());retData.getTenantHolidaySetList().setIdCardName(batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList().getIdCardName());retData.getTenantHolidaySetList().setNickName(batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList().getNickName());retData.getTenantHolidaySetList().setOperateTime(listOmsReportHolidayHandlingStrategy_1.getOperateTime())




return retData;
  }
/**
   * D3查询租户节假日设置详情[5316]
   * gen by moon at 11/29/2022, 11:19:23 AM
   */
  @Trace(operationName = "D3查询租户节假日设置详情")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryTenantHolidaySetDetailRespDto queryTenantHolidaySetDetail(QueryTenantHolidaySetDetailReqDto reqDto){


      OmsReportHolidayHandlingStrategy omsReportHolidayHandlingStrategy_1 =null;
//步骤0: 3-4-06查询租户节假日设置详情 - queryTenantHolidaySetDetail
     OmsReportHolidayHandlingStrategy omsReportHolidayHandlingStrategy = null;
    QueryTenantHolidaySetDetailReq queryTenantHolidaySetDetailReq=new QueryTenantHolidaySetDetailReq();
  queryTenantHolidaySetDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:462852_1
if(reqDto!=null){
      queryTenantHolidaySetDetailReq.setHolidayStrategyId(reqDto.getHolidayStrategyId());//SimpleFieldAssign//sourceId:462849_1
    }

    /*3-4-06查询租户节假日设置详情[5309]   */
    Assert.isNull(queryTenantHolidaySetDetailReq.getHolidayStrategyId(),"D3查询租户节假日设置详情-3-4-06查询租户节假日设置详情-节假日设置策略ID不能为空",false);
Assert.isNull(queryTenantHolidaySetDetailReq.getSpaceId(),"D3查询租户节假日设置详情-3-4-06查询租户节假日设置详情-创建于空间ID不能为空",false);
      omsReportHolidayHandlingStrategy = mOmsReportHolidayHandlingStrategyService.queryTenantHolidaySetDetail(queryTenantHolidaySetDetailReq);
      Assert.isTrue(omsReportHolidayHandlingStrategy== null||  omsReportHolidayHandlingStrategy.getHolidayStrategyId() ==null,"找不到数据，系统异常",false);

      omsReportHolidayHandlingStrategy_1 = omsReportHolidayHandlingStrategy;

QueryTenantHolidaySetDetailRespDto retData = new QueryTenantHolidaySetDetailRespDto();
  if(omsReportHolidayHandlingStrategy_1!=null){
      retData.setHolidayStrategyId(omsReportHolidayHandlingStrategy_1.getHolidayStrategyId());//SimpleFieldAssign//sourceId:462859_1
retData.setHolidayCycleType(omsReportHolidayHandlingStrategy_1.getHolidayCycleType());//SimpleFieldAssign//sourceId:462860_1
retData.setReportTimeHandlingStrategy(omsReportHolidayHandlingStrategy_1.getReportTimeHandlingStrategy());//SimpleFieldAssign//sourceId:462861_1
retData.setSubjectLifeCycle(omsReportHolidayHandlingStrategy_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:462862_1
retData.setOperationInductionId(omsReportHolidayHandlingStrategy_1.getOperationInductionId());//SimpleFieldAssign//sourceId:462863_1
retData.setOperateTime(omsReportHolidayHandlingStrategy_1.getOperateTime());//SimpleFieldAssign//sourceId:462864_1
    }




return retData;
  }
/**
   * D3查询租户节假日菜单列表[5318]
   * gen by moon at 11/29/2022, 11:19:26 AM
   */
  @Trace(operationName = "D3查询租户节假日菜单列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryTenantHolidayMenuListRespDto queryTenantHolidayMenuList(QueryTenantHolidayMenuListReqDto reqDto){


      List<OmsCycleType> listOmsCycleType_5 =new ArrayList<>();
//步骤0: 3-4-01查询租户节假日菜单列表 - queryTenantHolidayMenuList
     List<OmsCycleType> listOmsCycleType =new ArrayList<>();
    QueryTenantHolidayMenuListReq queryTenantHolidayMenuListReq=new QueryTenantHolidayMenuListReq();
  queryTenantHolidayMenuListReq.setCycleTypeStandard("IRREGULAR");//sourceId:462913_1
queryTenantHolidayMenuListReq.setIsWorkCycleType("FALSE");//sourceId:462909_1
queryTenantHolidayMenuListReq.setCycleTypeUsage("DURING_HOLIDAY");//sourceId:462910_1
queryTenantHolidayMenuListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:462911_1
queryTenantHolidayMenuListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:462925_1

    /*3-4-01查询租户自定义节假日菜单列表[5311]   */
    Assert.isNull(queryTenantHolidayMenuListReq.getCycleTypeStandard(),"D3查询租户节假日菜单列表-3-4-01查询租户自定义节假日菜单列表-周期类型标准化不能为空",false);
Assert.isNull(queryTenantHolidayMenuListReq.getIsWorkCycleType(),"D3查询租户节假日菜单列表-3-4-01查询租户自定义节假日菜单列表-是否工作周期不能为空",false);
Assert.isNull(queryTenantHolidayMenuListReq.getCycleTypeUsage(),"D3查询租户节假日菜单列表-3-4-01查询租户自定义节假日菜单列表-周期类型用途不能为空",false);
Assert.isNull(queryTenantHolidayMenuListReq.getSubjectLifeCycle(),"D3查询租户节假日菜单列表-3-4-01查询租户自定义节假日菜单列表-主体生命周期不能为空",false);
Assert.isNull(queryTenantHolidayMenuListReq.getSpaceId(),"D3查询租户节假日菜单列表-3-4-01查询租户自定义节假日菜单列表-创建于空间ID不能为空",false);
      listOmsCycleType = mOmsCycleTypeService.queryTenantHolidayMenuList(queryTenantHolidayMenuListReq);




//步骤1: 3-4-01查询租户节假日菜单列表 - queryTenantHolidayMenuList
     List<OmsCycleType> listOmsCycleType_2 =new ArrayList<>();
    QueryTenantHolidayMenuListReq queryTenantHolidayMenuListReq_1=new QueryTenantHolidayMenuListReq();
  queryTenantHolidayMenuListReq_1.setCycleTypeStandard("STANDARD");//sourceId:462915_1
queryTenantHolidayMenuListReq_1.setIsWorkCycleType("FALSE");//sourceId:462916_1
queryTenantHolidayMenuListReq_1.setCycleTypeUsage("DURING_HOLIDAY");//sourceId:462917_1
queryTenantHolidayMenuListReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:462918_1

    /*3-4-01查询标准节假日菜单列表[5311]   */
    Assert.isNull(queryTenantHolidayMenuListReq_1.getCycleTypeStandard(),"D3查询租户节假日菜单列表-3-4-01查询标准节假日菜单列表-周期类型标准化不能为空",false);
Assert.isNull(queryTenantHolidayMenuListReq_1.getIsWorkCycleType(),"D3查询租户节假日菜单列表-3-4-01查询标准节假日菜单列表-是否工作周期不能为空",false);
Assert.isNull(queryTenantHolidayMenuListReq_1.getCycleTypeUsage(),"D3查询租户节假日菜单列表-3-4-01查询标准节假日菜单列表-周期类型用途不能为空",false);
Assert.isNull(queryTenantHolidayMenuListReq_1.getSubjectLifeCycle(),"D3查询租户节假日菜单列表-3-4-01查询标准节假日菜单列表-主体生命周期不能为空",false);
      listOmsCycleType_2 = mOmsCycleTypeService.queryTenantHolidayMenuList(queryTenantHolidayMenuListReq_1);
      Assert.isTrue(listOmsCycleType_2== null|| CollectionUtil.isEmpty(listOmsCycleType_2)||  listOmsCycleType_2 ==null|| CollectionUtil.isEmpty(listOmsCycleType_2)|| listOmsCycleType_2.size()==0 ,"找不到数据，系统异常",false);



//步骤2: D2执行多数据集取并集(公共) - implementUnionMultipleDataSetsCom
     ImplementUnionMultipleDataSetsComRespDto implementUnionMultipleDataSetsComRespDto = null;
      // TODO: 2023/2/8 手写代码 
    if(listOmsCycleType_2 !=null&& !CollectionUtil.isEmpty(listOmsCycleType_2)&& listOmsCycleType_2.size()>0 ){
          ImplementUnionMultipleDataSetsComReqDto implementUnionMultipleDataSetsComReqDto=new ImplementUnionMultipleDataSetsComReqDto();
  implementUnionMultipleDataSetsComReqDto.setDataSetsListOne(listOmsCycleType_2.stream().map(item->{
      com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
      elm.setCustomField1(item.getCycleTypeId());
      return elm;
  })
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:462937_1
        // TODO: 2023/2/8 手写代码 
implementUnionMultipleDataSetsComReqDto.setDataSetsListTwo(listOmsCycleType.stream().map(item->{
    DataSetsListTwoDto elm = new DataSetsListTwoDto();
    elm.setCustomField1(item.getCycleTypeId());
    return elm;
})
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:462938_1

    /*D2执行多数据集取并集(公共)[5320]   */

      implementUnionMultipleDataSetsComRespDto = fwCompInterfaceModeClient.implementUnionMultipleDataSetsCom(implementUnionMultipleDataSetsComReqDto).getData();



           }

//步骤3: 3-4-01批量查周期类型列表 - batchQueryCycleTypeList
     List<OmsCycleType> listOmsCycleType_4 =new ArrayList<>();
    if(implementUnionMultipleDataSetsComRespDto !=null){
          BatchQueryCycleTypeListReq batchQueryCycleTypeListReq=new BatchQueryCycleTypeListReq();
  batchQueryCycleTypeListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:462948_1
if(implementUnionMultipleDataSetsComRespDto!=null){
    // TODO: 2023/2/8 手写代码，单转多
      batchQueryCycleTypeListReq.setCycleTypeList(implementUnionMultipleDataSetsComRespDto.getUnionMultipleDataSetsList().stream().map(data->data.getCustomField()).collect(Collectors.toList()));//list-field-assign//sourceId:462947_1
    }

    /*3-4-01批量查周期类型列表[2274]   */
    Assert.isNull(batchQueryCycleTypeListReq.getSubjectLifeCycle(),"D3查询租户节假日菜单列表-3-4-01批量查周期类型列表-主体生命周期不能为空",false);
      listOmsCycleType_4 = mOmsCycleTypeService.batchQueryCycleTypeList(batchQueryCycleTypeListReq);
      Assert.isTrue(listOmsCycleType_4== null|| CollectionUtil.isEmpty(listOmsCycleType_4)||  listOmsCycleType_4 ==null|| CollectionUtil.isEmpty(listOmsCycleType_4)|| listOmsCycleType_4.size()==0 ,"找不到数据，系统异常",false);

      listOmsCycleType_5 = listOmsCycleType_4;
           }

QueryTenantHolidayMenuListRespDto retData = new QueryTenantHolidayMenuListRespDto();
  retData.setTenantHolidayMenuList(listOmsCycleType_5.stream().map(item -> BeanUtil.toBean(item, TenantHolidayMenuDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:462957_1




return retData;
  }
/**
   * D2新增租户节假日设置[5322]
   * gen by moon at 11/29/2022, 11:19:29 AM
   */
  @Trace(operationName = "D2新增租户节假日设置")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddTenantHolidaySetRespDto addTenantHolidaySet(AddTenantHolidaySetReqDto reqDto){


      String string_1 =null;
//步骤0: 3-4-06新增租户节假日设置 - addTenantHolidaySet
     String string = null;
    OmsReportHolidayHandlingStrategy omsReportHolidayHandlingStrategy=new OmsReportHolidayHandlingStrategy();
  if(reqDto!=null){
      omsReportHolidayHandlingStrategy.setHolidayCycleType(reqDto.getHolidayCycleType());//SimpleFieldAssign//sourceId:462960_1
omsReportHolidayHandlingStrategy.setReportTimeHandlingStrategy(reqDto.getReportTimeHandlingStrategy());//SimpleFieldAssign//sourceId:462961_1
omsReportHolidayHandlingStrategy.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:462962_1
    }

    /*3-4-06新增租户节假日设置[5307]   */
    Assert.isNull(omsReportHolidayHandlingStrategy.getHolidayCycleType(),"D2新增租户节假日设置-3-4-06新增租户节假日设置-节假日周期类型不能为空",false);
Assert.isNull(omsReportHolidayHandlingStrategy.getReportTimeHandlingStrategy(),"D2新增租户节假日设置-3-4-06新增租户节假日设置-汇报时间处理策略不能为空",false);
Assert.isNull(omsReportHolidayHandlingStrategy.getSubjectLifeCycle(),"D2新增租户节假日设置-3-4-06新增租户节假日设置-主体生命周期不能为空",false);
      string = mOmsReportHolidayHandlingStrategyService.addTenantHolidaySet(omsReportHolidayHandlingStrategy);


      string_1 = string;

AddTenantHolidaySetRespDto retData = new AddTenantHolidaySetRespDto();
  if(string_1!=null){
      retData.setHolidayStrategyId(string_1);//SimpleFieldAssign//sourceId:462967_1
    }




return retData;
  }
/**
   * D3修改租户节假日设置[5326]
   * gen by moon at 11/29/2022, 11:19:31 AM
   */
  @Trace(operationName = "D3修改租户节假日设置")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdateTenantHolidaySetRespDto updateTenantHolidaySet(UpdateTenantHolidaySetReqDto reqDto){


      //步骤0: 3-4-06修改租户节假日设置 - updateTenantHolidaySet
     boolean bOOLEAN ;
    OmsReportHolidayHandlingStrategy omsReportHolidayHandlingStrategy=new OmsReportHolidayHandlingStrategy();
  if(reqDto!=null){
      omsReportHolidayHandlingStrategy.setHolidayStrategyId(reqDto.getHolidayStrategyId());//SimpleFieldAssign//sourceId:462983_1
omsReportHolidayHandlingStrategy.setReportTimeHandlingStrategy(reqDto.getReportTimeHandlingStrategy());//SimpleFieldAssign//sourceId:462984_1
omsReportHolidayHandlingStrategy.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:462985_1
    }

    /*3-4-06修改租户节假日设置[5308]   */
    Assert.isNull(omsReportHolidayHandlingStrategy.getHolidayStrategyId(),"D3修改租户节假日设置-3-4-06修改租户节假日设置-节假日设置策略ID不能为空",false);
      bOOLEAN = mOmsReportHolidayHandlingStrategyService.updateTenantHolidaySet(omsReportHolidayHandlingStrategy);




UpdateTenantHolidaySetRespDto retData = new UpdateTenantHolidaySetRespDto();





return retData;
  }
/**
   * D3删除租户节假日设置[5327]
   * gen by moon at 11/29/2022, 8:03:54 PM
   */
  @Trace(operationName = "D3删除租户节假日设置")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public DeleteTenantHolidaySetRespDto deleteTenantHolidaySet(DeleteTenantHolidaySetReqDto reqDto){


      //步骤0: 3-4-06删除租户节假日设置 - deleteTenantHolidaySet
     boolean bOOLEAN ;
    String string=new String();
  if(reqDto!=null){
      string=reqDto.getHolidayStrategyId();;//SimpleFieldAssign//sourceId:462996_1
    }

    /*3-4-06删除租户节假日设置[5313]   */
    Assert.isNull(string,"D3删除租户节假日设置-3-4-06删除租户节假日设置-节假日设置策略ID不能为空",false);
      bOOLEAN = mOmsReportHolidayHandlingStrategyService.deleteTenantHolidaySet(string);




DeleteTenantHolidaySetRespDto retData = new DeleteTenantHolidaySetRespDto();





return retData;
  }
/**
   * D3存档租户节假日设置[5328]
   * gen by moon at 11/29/2022, 11:19:35 AM
   */
  @Trace(operationName = "D3存档租户节假日设置")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ArchiveTenantHolidaySetRespDto archiveTenantHolidaySet(ArchiveTenantHolidaySetReqDto reqDto){


      //步骤0: 3-4-06修改租户节假日设置 - updateTenantHolidaySet
     boolean bOOLEAN ;
    OmsReportHolidayHandlingStrategy omsReportHolidayHandlingStrategy=new OmsReportHolidayHandlingStrategy();
  omsReportHolidayHandlingStrategy.setSubjectLifeCycle("ARCHIVING");//sourceId:463002_1
omsReportHolidayHandlingStrategy.setIsArchive("TRUE");//sourceId:463003_1
if(reqDto!=null){
      omsReportHolidayHandlingStrategy.setHolidayStrategyId(reqDto.getHolidayStrategyId());//SimpleFieldAssign//sourceId:463000_1
    }

    /*3-4-06修改租户节假日设置[5308]   */
    Assert.isNull(omsReportHolidayHandlingStrategy.getHolidayStrategyId(),"D3存档租户节假日设置-3-4-06修改租户节假日设置-节假日设置策略ID不能为空",false);
Assert.isNull(omsReportHolidayHandlingStrategy.getSubjectLifeCycle(),"D3存档租户节假日设置-3-4-06修改租户节假日设置-主体生命周期不能为空",false);
Assert.isNull(omsReportHolidayHandlingStrategy.getIsArchive(),"D3存档租户节假日设置-3-4-06修改租户节假日设置-是否存档不能为空",false);
      bOOLEAN = mOmsReportHolidayHandlingStrategyService.updateTenantHolidaySet(omsReportHolidayHandlingStrategy);




ArchiveTenantHolidaySetRespDto retData = new ArchiveTenantHolidaySetRespDto();





return retData;
  }
/**
   * D3查询租户周期类型实例列表[5334]
   * gen by moon at 11/29/2022, 8:03:56 PM
   */
  @Trace(operationName = "D3查询租户周期类型实例列表")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryTenantCycleTypeInstanceListRespDto queryTenantCycleTypeInstanceList(QueryTenantCycleTypeInstanceListReqDto reqDto){


      List<OmsCycleTypeInstance> listOmsCycleTypeInstance_1 =new ArrayList<>();
//步骤0: 3-4-02查询租户周期类型实例列表 - queryTenantCycleTypeInstanceList
     List<OmsCycleTypeInstance> listOmsCycleTypeInstance =new ArrayList<>();
    QueryTenantCycleTypeInstanceListReq queryTenantCycleTypeInstanceListReq=new QueryTenantCycleTypeInstanceListReq();
  if(reqDto!=null){
      queryTenantCycleTypeInstanceListReq.setCycleTypeId(reqDto.getCycleTypeId());//SimpleFieldAssign//sourceId:463492_1
queryTenantCycleTypeInstanceListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:463493_1
queryTenantCycleTypeInstanceListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:463510_1
    }

    /*3-4-02查询租户周期类型实例列表[5324]   */
    Assert.isNull(queryTenantCycleTypeInstanceListReq.getCycleTypeId(),"D3查询租户周期类型实例列表-3-4-02查询租户周期类型实例列表-周期类型ID不能为空",false);
Assert.isNull(queryTenantCycleTypeInstanceListReq.getSubjectLifeCycle(),"D3查询租户周期类型实例列表-3-4-02查询租户周期类型实例列表-主体生命周期不能为空",false);
      listOmsCycleTypeInstance = mOmsCycleTypeInstanceService.queryTenantCycleTypeInstanceList(queryTenantCycleTypeInstanceListReq);


      listOmsCycleTypeInstance_1 = listOmsCycleTypeInstance;

QueryTenantCycleTypeInstanceListRespDto retData = new QueryTenantCycleTypeInstanceListRespDto();
  retData.setTenantCycleTypeInstanceList(listOmsCycleTypeInstance_1.stream().map(item -> BeanUtil.toBean(item, TenantCycleTypeInstanceDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:463498_1




return retData;
  }
/**
   * D3执行判断节假日处理策略(公共)[5357]
   * gen by moon at 12/7/2022, 2:29:55 AM
   */
  @Trace(operationName = "D3执行判断节假日处理策略(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementStageHolidayStrategyComRespDto implementStageHolidayStrategyCom(ImplementStageHolidayStrategyComReqDto reqDto){


      ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_2 =null;
ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_4 =null;
ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_6 =null;
ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_12 =null;
ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_15 =null;
//virtualUsage M3节假日处理策略配置答案值  22982
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setEndValue(reqDto.getEndValue());//SimpleFieldAssign//sourceId:466758_1_22982
receptionServiceReq.setHolidayHandlingSenceType(reqDto.getHolidayHandlingSenceType());//SimpleFieldAssign//sourceId:468334_1_22982
receptionServiceReq.setFillStartTime(reqDto.getFillStartTime());//SimpleFieldAssign//sourceId:468326_1_22982
receptionServiceReq.setFillEndtTime(reqDto.getFillEndtTime());//SimpleFieldAssign//sourceId:468327_1_22982
receptionServiceReq.setEvaluateStartTime(reqDto.getEvaluateStartTime());//SimpleFieldAssign//sourceId:468328_1_22982
receptionServiceReq.setEvaluateEndtTime(reqDto.getEvaluateEndtTime());//SimpleFieldAssign//sourceId:468329_1_22982
    }

    /*M3节假日处理策略配置答案值[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getEndValue(),"D3执行判断节假日处理策略(公共)-M3节假日处理策略配置答案值-答案值不能为空",false);
Assert.isNull(receptionServiceReq.getHolidayHandlingSenceType(),"D3执行判断节假日处理策略(公共)-M3节假日处理策略配置答案值-节假日处理业务场景类型不能为空",false);
      receptionServiceRes = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getEndValue() !=null && reqDto.getEndValue().equals("ADVANCE_REPORT"))) {
        //if(D3执行判断节假日处理策略(公共).节假日处理策略配置答案值 等于 提前汇报)  22983

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_1 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_1=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_1.setNumCompareResult("BEFORE");//sourceId:467384_1_22985

    /*M3数值比较结果约定“之前”[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getNumCompareResult(),"D3执行判断节假日处理策略(公共)-M3数值比较结果约定“之前”-数值比较结果不能为空",false);
      receptionServiceRes_1 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_1);


      receptionServiceRes_2 = receptionServiceRes_1;
if((reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_SENCE"))) {
        //if(D3执行判断节假日处理策略(公共).节假日处理业务场景类型 等于 填报场景)  22993

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_3 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_2=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_2.setComTimeField(reqDto.getFillEndtTime());//SimpleFieldAssign//sourceId:468586_1_22996
    }

    /*M3接收通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getComTimeField(),"D3执行判断节假日处理策略(公共)-M3接收通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_3 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_2);


      receptionServiceRes_4 = receptionServiceRes_3;
//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_5 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_3=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_3.setCalculateStartPointOrEndPoint("END_POINT");//sourceId:469864_1_23057

    /*M3计算从结束终点[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_3.getCalculateStartPointOrEndPoint(),"D3执行判断节假日处理策略(公共)-M3计算从结束终点-计算开始起点还是结束终点不能为空",false);
      receptionServiceRes_5 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_3);


      receptionServiceRes_6 = receptionServiceRes_5;
      }
else if((reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("EVALUATE_SENCE"))){
       //elseif(D3执行判断节假日处理策略(公共).节假日处理业务场景类型 等于 评价场景)  22994

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_7 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_4=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_4.setComTimeField(reqDto.getEvaluateEndtTime());//SimpleFieldAssign//sourceId:468586_1_22997
    }

    /*M3接收通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_4.getComTimeField(),"D3执行判断节假日处理策略(公共)-M3接收通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_7 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_4);


      receptionServiceRes_4 = receptionServiceRes_7;
//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_8 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_5=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_5.setCalculateStartPointOrEndPoint("END_POINT");//sourceId:469864_1_23059

    /*M3计算从结束终点[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_5.getCalculateStartPointOrEndPoint(),"D3执行判断节假日处理策略(公共)-M3计算从结束终点-计算开始起点还是结束终点不能为空",false);
      receptionServiceRes_8 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_5);


      receptionServiceRes_6 = receptionServiceRes_8;
    }
else if((reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif(D3执行判断节假日处理策略(公共).节假日处理业务场景类型 等于 填报评价场景)  22995

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_9 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_6=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_6.setComTimeField(reqDto.getEvaluateEndtTime());//SimpleFieldAssign//sourceId:468586_1_22998
    }

    /*M3接收通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_6.getComTimeField(),"D3执行判断节假日处理策略(公共)-M3接收通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_9 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_6);


      receptionServiceRes_4 = receptionServiceRes_9;
//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_10 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_7=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_7.setCalculateStartPointOrEndPoint("END_POINT");//sourceId:469864_1_23060

    /*M3计算从结束终点[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_7.getCalculateStartPointOrEndPoint(),"D3执行判断节假日处理策略(公共)-M3计算从结束终点-计算开始起点还是结束终点不能为空",false);
      receptionServiceRes_10 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_7);


      receptionServiceRes_6 = receptionServiceRes_10;
    }
      }
else if((reqDto!= null&&  reqDto.getEndValue() !=null && reqDto.getEndValue().equals("POSTPONE_REPORT"))){
       //elseif(D3执行判断节假日处理策略(公共).节假日处理策略配置答案值 等于 推迟汇报)  22984

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_11 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_8=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_8.setNumCompareResult("LATER");//sourceId:467386_1_22986

    /*M3数值比较结果约定“之后”[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_8.getNumCompareResult(),"D3执行判断节假日处理策略(公共)-M3数值比较结果约定“之后”-数值比较结果不能为空",false);
      receptionServiceRes_11 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_8);


      receptionServiceRes_12 = receptionServiceRes_11;
if((reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_SENCE"))) {
        //if(D3执行判断节假日处理策略(公共).节假日处理业务场景类型 等于 填报场景)  22999

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_13 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_9=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_9.setComTimeField(reqDto.getFillStartTime());//SimpleFieldAssign//sourceId:468586_1_23002
    }

    /*M3接收通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_9.getComTimeField(),"D3执行判断节假日处理策略(公共)-M3接收通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_13 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_9);


      receptionServiceRes_4 = receptionServiceRes_13;
//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_14 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_10=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_10.setCalculateStartPointOrEndPoint("START_POINT");//sourceId:469595_1_23062

    /*M3计算从开始起点[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_10.getCalculateStartPointOrEndPoint(),"D3执行判断节假日处理策略(公共)-M3计算从开始起点-计算开始起点还是结束终点不能为空",false);
      receptionServiceRes_14 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_10);


      receptionServiceRes_15 = receptionServiceRes_14;
      }
else if((reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("EVALUATE_SENCE"))){
       //elseif(D3执行判断节假日处理策略(公共).节假日处理业务场景类型 等于 评价场景)  23000

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_16 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_11=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_11.setComTimeField(reqDto.getEvaluateStartTime());//SimpleFieldAssign//sourceId:468586_1_23003
    }

    /*M3接收通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_11.getComTimeField(),"D3执行判断节假日处理策略(公共)-M3接收通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_16 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_11);


      receptionServiceRes_4 = receptionServiceRes_16;
//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_17 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_12=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_12.setCalculateStartPointOrEndPoint("START_POINT");//sourceId:469595_1_23064

    /*M3计算从开始起点[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_12.getCalculateStartPointOrEndPoint(),"D3执行判断节假日处理策略(公共)-M3计算从开始起点-计算开始起点还是结束终点不能为空",false);
      receptionServiceRes_17 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_12);


      receptionServiceRes_15 = receptionServiceRes_17;
    }
else if((reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif(D3执行判断节假日处理策略(公共).节假日处理业务场景类型 等于 填报评价场景)  23001

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_18 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_13=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_13.setComTimeField(reqDto.getFillStartTime());//SimpleFieldAssign//sourceId:468586_1_23004
    }

    /*M3接收通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_13.getComTimeField(),"D3执行判断节假日处理策略(公共)-M3接收通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_18 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_13);


      receptionServiceRes_4 = receptionServiceRes_18;
//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_19 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_14=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_14.setCalculateStartPointOrEndPoint("START_POINT");//sourceId:469595_1_23066

    /*M3计算从开始起点[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_14.getCalculateStartPointOrEndPoint(),"D3执行判断节假日处理策略(公共)-M3计算从开始起点-计算开始起点还是结束终点不能为空",false);
      receptionServiceRes_19 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_14);


      receptionServiceRes_15 = receptionServiceRes_19;
    }
    }
ImplementStageHolidayStrategyComRespDto retData = new ImplementStageHolidayStrategyComRespDto();
  if(receptionServiceRes_2!=null){
      retData.setNumCompareResult(receptionServiceRes_2.getNumCompareResult());//SimpleFieldAssign//sourceId:467388_1
    }
if(receptionServiceRes_12!=null){
      retData.setNumCompareResult(receptionServiceRes_12.getNumCompareResult());//SimpleFieldAssign//sourceId:467388_1
    }
if(receptionServiceRes_4!=null){
      retData.setComTimeField(receptionServiceRes_4.getComTimeField());//SimpleFieldAssign//sourceId:468589_1
    }
if(receptionServiceRes_15!=null){
      retData.setCalculateStartPointOrEndPoint(receptionServiceRes_15.getCalculateStartPointOrEndPoint());//SimpleFieldAssign//sourceId:469879_1
    }
if(receptionServiceRes_6!=null){
      retData.setCalculateStartPointOrEndPoint(receptionServiceRes_6.getCalculateStartPointOrEndPoint());//SimpleFieldAssign//sourceId:469879_1
    }




return retData;
  }
/**
   * D3执行判断时间点前后偏移N天(公共)[5360]
   * gen by moon at 5/25/2023, 12:00:48 AM
   */
  @Trace(operationName = "D3执行判断时间点前后偏移N天(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementJudgeOffsetNdaysInTimePointIntervalComRespDto implementJudgeOffsetNdaysInTimePointIntervalCom(ImplementJudgeOffsetNdaysInTimePointIntervalComReqDto reqDto){


      OmsCycle omsCycle_1 =null;
//virtualUsage M3执行业务应用构造出入参字段（特殊方法）  23076
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!= null&&  reqDto.getCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getCycleList())){
      receptionServiceReq.setCycleList(reqDto.getCycleList().stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:470587_1_23076
    }
if(reqDto!=null){
      receptionServiceReq.setNumCompareResult(reqDto.getNumCompareResult());//SimpleFieldAssign//sourceId:470597_1_23076
receptionServiceReq.setComTimeField(reqDto.getComTimeField());//SimpleFieldAssign//sourceId:470598_1_23076
receptionServiceReq.setComNumField(reqDto.getComNumField());//SimpleFieldAssign//sourceId:470604_1_23076
    }

    /*M3执行业务应用构造出入参字段（特殊方法）[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getNumCompareResult(),"D3执行判断时间点前后偏移N天(公共)-M3执行业务应用构造出入参字段（特殊方法）-数值比较结果不能为空",false);
Assert.isNull(receptionServiceReq.getComTimeField(),"D3执行判断时间点前后偏移N天(公共)-M3执行业务应用构造出入参字段（特殊方法）-通用时间字段不能为空",false);
Assert.isNull(receptionServiceReq.getComNumField(),"D3执行判断时间点前后偏移N天(公共)-M3执行业务应用构造出入参字段（特殊方法）-通用数值字段（整数型）不能为空",false);
      receptionServiceRes = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getNumCompareResult() !=null && reqDto.getNumCompareResult().equals("BEFORE"))) {
        //if(D3执行判断时间点前后偏移N天(公共).数值比较结果 等于 之前)  23077

ImplementOffsetNdaysInTimePointIntervalComRespDto implementOffsetNdaysInTimePointIntervalComRespDto = null;
    ImplementOffsetNdaysInTimePointIntervalComReqDto implementOffsetNdaysInTimePointIntervalComReqDto=new ImplementOffsetNdaysInTimePointIntervalComReqDto();
  if(reqDto!= null&&  reqDto.getCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getCycleList())){
      implementOffsetNdaysInTimePointIntervalComReqDto.setOffsetNdaysInTimePointIntervalList(//objList-to-objLists
        reqDto.getCycleList().stream().map(item -> {
      OffsetNdaysInTimePointIntervalDto elm = new OffsetNdaysInTimePointIntervalDto();
      if(item!=null){
      elm.setCustomField(item.getCycleId());//SimpleFieldAssign//sourceId:125066_2_23079
elm.setComTimeField(item.getCycleEndTime());//SimpleFieldAssign//sourceId:125067_2_23079
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:469985_1_23079
    }
if(reqDto!=null){
      implementOffsetNdaysInTimePointIntervalComReqDto.setNumCompareResult(reqDto.getNumCompareResult());//SimpleFieldAssign//sourceId:469983_1_23079
implementOffsetNdaysInTimePointIntervalComReqDto.setComTimeField(reqDto.getComTimeField());//SimpleFieldAssign//sourceId:469984_1_23079
implementOffsetNdaysInTimePointIntervalComReqDto.setComNumField(reqDto.getComNumField());//SimpleFieldAssign//sourceId:469989_1_23079
    }

    /*D2执行时间点区间内前后偏移N天(公共)[5356]   */
    Assert.isNull(implementOffsetNdaysInTimePointIntervalComReqDto.getNumCompareResult(),"D3执行判断时间点前后偏移N天(公共)-D2执行时间点区间内前后偏移N天(公共)-数值比较结果不能为空",false);
Assert.isNull(implementOffsetNdaysInTimePointIntervalComReqDto.getComTimeField(),"D3执行判断时间点前后偏移N天(公共)-D2执行时间点区间内前后偏移N天(公共)-通用时间字段不能为空",false);
Assert.isNull(implementOffsetNdaysInTimePointIntervalComReqDto.getComNumField(),"D3执行判断时间点前后偏移N天(公共)-D2执行时间点区间内前后偏移N天(公共)-通用数值字段（整数型）不能为空",false);
      implementOffsetNdaysInTimePointIntervalComRespDto = fwCompInterfaceModeClient.implementOffsetNdaysInTimePointIntervalCom(implementOffsetNdaysInTimePointIntervalComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



OmsCycle omsCycle = null;
    if(implementOffsetNdaysInTimePointIntervalComRespDto !=null&&implementOffsetNdaysInTimePointIntervalComRespDto!= null&&  implementOffsetNdaysInTimePointIntervalComRespDto.getCustomField() !=null){
          QueryCycleDetailReq queryCycleDetailReq=new QueryCycleDetailReq();
  queryCycleDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:470001_1_23082
if(implementOffsetNdaysInTimePointIntervalComRespDto!=null){
      queryCycleDetailReq.setCycleId(implementOffsetNdaysInTimePointIntervalComRespDto.getCustomField());//SimpleFieldAssign//sourceId:470000_1_23082
    }

    /*3-4-04查询周期开始时间与结束时间[2004]   */
    Assert.isNull(queryCycleDetailReq.getCycleId(),"D3执行判断时间点前后偏移N天(公共)-3-4-04查询周期开始时间与结束时间-周期ID不能为空",false);
Assert.isNull(queryCycleDetailReq.getSubjectLifeCycle(),"D3执行判断时间点前后偏移N天(公共)-3-4-04查询周期开始时间与结束时间-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryCycleDetail(queryCycleDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycle== null||  omsCycle.getCycleId() ==null,"找不到数据，系统异常",false);

      omsCycle_1 = omsCycle;
           }
      }
else if((reqDto!= null&&  reqDto.getNumCompareResult() !=null && reqDto.getNumCompareResult().equals("LATER"))){
       //elseif(D3执行判断时间点前后偏移N天(公共).数值比较结果 等于 之后)  23078

ImplementOffsetNdaysInTimePointIntervalComRespDto implementOffsetNdaysInTimePointIntervalComRespDto_2 = null;
    ImplementOffsetNdaysInTimePointIntervalComReqDto implementOffsetNdaysInTimePointIntervalComReqDto_1=new ImplementOffsetNdaysInTimePointIntervalComReqDto();
  if(reqDto!= null&&  reqDto.getCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getCycleList())){
      implementOffsetNdaysInTimePointIntervalComReqDto_1.setOffsetNdaysInTimePointIntervalList(//objList-to-objLists
        reqDto.getCycleList().stream().map(item -> {
      OffsetNdaysInTimePointIntervalDto elm = new OffsetNdaysInTimePointIntervalDto();
      if(item!=null){
      elm.setCustomField(item.getCycleId());//SimpleFieldAssign//sourceId:125066_2_23080
elm.setComTimeField(item.getCycleStartTime());//SimpleFieldAssign//sourceId:125067_2_23080
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:469985_1_23080
    }
if(reqDto!=null){
      implementOffsetNdaysInTimePointIntervalComReqDto_1.setNumCompareResult(reqDto.getNumCompareResult());//SimpleFieldAssign//sourceId:469983_1_23080
implementOffsetNdaysInTimePointIntervalComReqDto_1.setComTimeField(reqDto.getComTimeField());//SimpleFieldAssign//sourceId:469984_1_23080
implementOffsetNdaysInTimePointIntervalComReqDto_1.setComNumField(reqDto.getComNumField());//SimpleFieldAssign//sourceId:469989_1_23080
    }

    /*D2执行时间点区间内前后偏移N天(公共)[5356]   */
    Assert.isNull(implementOffsetNdaysInTimePointIntervalComReqDto_1.getNumCompareResult(),"D3执行判断时间点前后偏移N天(公共)-D2执行时间点区间内前后偏移N天(公共)-数值比较结果不能为空",false);
Assert.isNull(implementOffsetNdaysInTimePointIntervalComReqDto_1.getComTimeField(),"D3执行判断时间点前后偏移N天(公共)-D2执行时间点区间内前后偏移N天(公共)-通用时间字段不能为空",false);
Assert.isNull(implementOffsetNdaysInTimePointIntervalComReqDto_1.getComNumField(),"D3执行判断时间点前后偏移N天(公共)-D2执行时间点区间内前后偏移N天(公共)-通用数值字段（整数型）不能为空",false);
      implementOffsetNdaysInTimePointIntervalComRespDto_2 = fwCompInterfaceModeClient.implementOffsetNdaysInTimePointIntervalCom(implementOffsetNdaysInTimePointIntervalComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



OmsCycle omsCycle_2 = null;
    if(implementOffsetNdaysInTimePointIntervalComRespDto_2 !=null&&implementOffsetNdaysInTimePointIntervalComRespDto_2!= null&&  implementOffsetNdaysInTimePointIntervalComRespDto_2.getCustomField() !=null){
          QueryCycleDetailReq queryCycleDetailReq_1=new QueryCycleDetailReq();
  queryCycleDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:470001_1_23083
if(implementOffsetNdaysInTimePointIntervalComRespDto_2!=null){
      queryCycleDetailReq_1.setCycleId(implementOffsetNdaysInTimePointIntervalComRespDto_2.getCustomField());//SimpleFieldAssign//sourceId:470000_1_23083
    }

    /*3-4-04查询周期开始时间与结束时间[2004]   */
    Assert.isNull(queryCycleDetailReq_1.getCycleId(),"D3执行判断时间点前后偏移N天(公共)-3-4-04查询周期开始时间与结束时间-周期ID不能为空",false);
Assert.isNull(queryCycleDetailReq_1.getSubjectLifeCycle(),"D3执行判断时间点前后偏移N天(公共)-3-4-04查询周期开始时间与结束时间-主体生命周期不能为空",false);
      omsCycle_2 = mOmsCycleService.queryCycleDetail(queryCycleDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycle_2== null||  omsCycle_2.getCycleId() ==null,"找不到数据，系统异常",false);

      omsCycle_1 = omsCycle_2;
           }
    }
ImplementJudgeOffsetNdaysInTimePointIntervalComRespDto retData = new ImplementJudgeOffsetNdaysInTimePointIntervalComRespDto();
  if(omsCycle_1!=null){
      retData.setCycleId(omsCycle_1.getCycleId());//SimpleFieldAssign//sourceId:470723_1
retData.setCycleStartTime(omsCycle_1.getCycleStartTime());//SimpleFieldAssign//sourceId:470724_1
retData.setCycleEndTime(omsCycle_1.getCycleEndTime());//SimpleFieldAssign//sourceId:470725_1
    }




return retData;
  }
/**
   * D3执行动态判断接收起始点(公共)[5364]
   * gen by moon at 5/24/2023, 11:57:13 PM
   */
  @Trace(operationName = "D3执行动态判断接收起始点(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementJudgmentStartingPointComRespDto implementJudgmentStartingPointCom(ImplementJudgmentStartingPointComReqDto reqDto){


      ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_2 =null;
//virtualUsage M3执行业务应用构造出入参字段（特殊方法）  23167
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setCalculateStartPointOrEndPoint(reqDto.getCalculateStartPointOrEndPoint());//SimpleFieldAssign//sourceId:473055_1_23167
receptionServiceReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:473056_1_23167
receptionServiceReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:473057_1_23167
receptionServiceReq.setFillAndEvaTimePoint(reqDto.getFillAndEvaTimePoint());//SimpleFieldAssign//sourceId:473420_1_23167
    }

    /*M3执行业务应用构造出入参字段（特殊方法）[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCalculateStartPointOrEndPoint(),"D3执行动态判断接收起始点(公共)-M3执行业务应用构造出入参字段（特殊方法）-计算开始起点还是结束终点不能为空",false);
Assert.isNull(receptionServiceReq.getCycleStartTime(),"D3执行动态判断接收起始点(公共)-M3执行业务应用构造出入参字段（特殊方法）-目标计划开始时间不能为空",false);
Assert.isNull(receptionServiceReq.getCycleEndTime(),"D3执行动态判断接收起始点(公共)-M3执行业务应用构造出入参字段（特殊方法）-目标计划结束时间不能为空",false);
Assert.isNull(receptionServiceReq.getFillAndEvaTimePoint(),"D3执行动态判断接收起始点(公共)-M3执行业务应用构造出入参字段（特殊方法）-填报评价时间点不能为空",false);
      receptionServiceRes = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getCalculateStartPointOrEndPoint() !=null && reqDto.getCalculateStartPointOrEndPoint().equals("END_POINT"))) {
        //if(D3执行动态判断接收起始点(公共).计算开始起点还是结束终点 等于 终点)  23168

if((reqDto!= null&&  reqDto.getFillAndEvaTimePoint() !=null && reqDto.getFillAndEvaTimePoint().equals("EVA_START_TIME_POINT"))) {
        //if(D3执行动态判断接收起始点(公共).填报评价时间点 等于 评价开始时间点)  23171

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_1 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_1=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_1.setComTimeField(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:473319_1_23175
    }

    /*M3约定通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getComTimeField(),"D3执行动态判断接收起始点(公共)-M3约定通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_1 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_1);


      receptionServiceRes_2 = receptionServiceRes_1;
      }
else if((reqDto!= null&&  reqDto.getFillAndEvaTimePoint() !=null && reqDto.getFillAndEvaTimePoint().equals("FILL_END_TIME_POINT"))){
       //elseif(D3执行动态判断接收起始点(公共).填报评价时间点 等于 填报结束时间点)  23172

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_3 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_2=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_2.setComTimeField(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:473319_1_23176
    }

    /*M3约定通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getComTimeField(),"D3执行动态判断接收起始点(公共)-M3约定通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_3 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_2);


      receptionServiceRes_2 = receptionServiceRes_3;
    }
else if((reqDto!= null&&  reqDto.getFillAndEvaTimePoint() !=null && reqDto.getFillAndEvaTimePoint().equals("FILL_START_TIME_POINT"))){
       //elseif(D3执行动态判断接收起始点(公共).填报评价时间点 等于 填报开始时间点)  23173

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_4 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_3=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_3.setComTimeField(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:473319_1_23177
    }

    /*M3约定通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_3.getComTimeField(),"D3执行动态判断接收起始点(公共)-M3约定通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_4 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_3);


      receptionServiceRes_2 = receptionServiceRes_4;
    }
      }
else if((reqDto!= null&&  reqDto.getCalculateStartPointOrEndPoint() !=null && reqDto.getCalculateStartPointOrEndPoint().equals("START_POINT"))){
       //elseif(D3执行动态判断接收起始点(公共).计算开始起点还是结束终点 等于 起点)  23169

if((reqDto!= null&&  reqDto.getFillAndEvaTimePoint() !=null && reqDto.getFillAndEvaTimePoint().equals("FILL_END_TIME_POINT"))) {
        //if(D3执行动态判断接收起始点(公共).填报评价时间点 等于 填报结束时间点)  23179

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_5 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_4=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_4.setComTimeField(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:473319_1_23180
    }

    /*M3约定通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_4.getComTimeField(),"D3执行动态判断接收起始点(公共)-M3约定通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_5 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_4);


      receptionServiceRes_2 = receptionServiceRes_5;
      }
else if((reqDto!= null&&  reqDto.getFillAndEvaTimePoint() !=null && reqDto.getFillAndEvaTimePoint().equals("EVA_START_TIME_POINT"))){
       //elseif(D3执行动态判断接收起始点(公共).填报评价时间点 等于 评价开始时间点)  23181

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_6 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_5=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_5.setComTimeField(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:473319_1_23182
    }

    /*M3约定通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_5.getComTimeField(),"D3执行动态判断接收起始点(公共)-M3约定通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_6 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_5);


      receptionServiceRes_2 = receptionServiceRes_6;
    }
else if((reqDto!= null&&  reqDto.getFillAndEvaTimePoint() !=null && reqDto.getFillAndEvaTimePoint().equals("EVA_END_TIME_POINT"))){
       //elseif(D3执行动态判断接收起始点(公共).填报评价时间点 等于 评价结束时间点)  23183

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_7 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_6=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_6.setComTimeField(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:473319_1_23184
    }

    /*M3约定通用时间字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_6.getComTimeField(),"D3执行动态判断接收起始点(公共)-M3约定通用时间字段-通用时间字段不能为空",false);
      receptionServiceRes_7 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_6);


      receptionServiceRes_2 = receptionServiceRes_7;
    }
    }
ImplementJudgmentStartingPointComRespDto retData = new ImplementJudgmentStartingPointComRespDto();
  if(receptionServiceRes_2!=null){
      retData.setComTimeField(receptionServiceRes_2.getComTimeField());//SimpleFieldAssign//sourceId:473590_1
    }




return retData;
  }
/**
   * D3判断当前时间点是否节假日(公共)[5366]
   * gen by moon at 12/7/2022, 2:34:24 AM
   */
  @Trace(operationName = "D3判断当前时间点是否节假日(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public JudgeCurrentTimePointIshHolidayComRespDto judgeCurrentTimePointIshHolidayCom(JudgeCurrentTimePointIshHolidayComReqDto reqDto){


      OmsCycle omsCycle_1 =null;
//virtualUsage M3执行业务应用构造出入参字段（特殊方法）  23283
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!= null&&  reqDto.getCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getCycleList())){
      receptionServiceReq.setCycleList(reqDto.getCycleList().stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:477947_1_23283
    }
if(reqDto!=null){
      receptionServiceReq.setComTimeField(reqDto.getComTimeField());//SimpleFieldAssign//sourceId:477954_1_23283
receptionServiceReq.setCalculateStartPointOrEndPoint(reqDto.getCalculateStartPointOrEndPoint());//SimpleFieldAssign//sourceId:477946_1_23283
    }

    /*M3执行业务应用构造出入参字段（特殊方法）[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getComTimeField(),"D3判断当前时间点是否节假日(公共)-M3执行业务应用构造出入参字段（特殊方法）-通用时间字段不能为空",false);
Assert.isNull(receptionServiceReq.getCalculateStartPointOrEndPoint(),"D3判断当前时间点是否节假日(公共)-M3执行业务应用构造出入参字段（特殊方法）-计算开始起点还是结束终点不能为空",false);
      receptionServiceRes = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getCalculateStartPointOrEndPoint() !=null && reqDto.getCalculateStartPointOrEndPoint().equals("END_POINT"))) {
        //if(D3判断当前时间点是否节假日(公共).计算开始起点还是结束终点 等于 终点)  23284

ImplementMatchRecordInputTimePointComRespDto implementMatchRecordInputTimePointComRespDto = null;
    ImplementMatchRecordInputTimePointComReqDto implementMatchRecordInputTimePointComReqDto=new ImplementMatchRecordInputTimePointComReqDto();
  if(reqDto!= null&&  reqDto.getCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getCycleList())){
      implementMatchRecordInputTimePointComReqDto.setMatchRecordInputTimePointList(//objList-to-objLists
        reqDto.getCycleList().stream().map(item -> {
      MatchRecordInputTimePointDto elm = new MatchRecordInputTimePointDto();
      if(item!=null){
      elm.setCustomField(item.getCycleId());//SimpleFieldAssign//sourceId:126162_2_23286
elm.setComTimeField(item.getCycleEndTime());//SimpleFieldAssign//sourceId:126163_2_23286
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:477689_1_23286
    }
if(reqDto!=null){
      implementMatchRecordInputTimePointComReqDto.setComTimeField(reqDto.getComTimeField());//SimpleFieldAssign//sourceId:477688_1_23286
    }

    /*D2执行入参时间匹配记录(公共)[5351]   */
    Assert.isNull(implementMatchRecordInputTimePointComReqDto.getComTimeField(),"D3判断当前时间点是否节假日(公共)-D2执行入参时间匹配记录(公共)-通用时间字段不能为空",false);
      implementMatchRecordInputTimePointComRespDto = fwCompInterfaceModeClient.implementMatchRecordInputTimePointCom(implementMatchRecordInputTimePointComReqDto).getData();



OmsCycle omsCycle = null;
    if(implementMatchRecordInputTimePointComRespDto !=null&&implementMatchRecordInputTimePointComRespDto!= null&&  implementMatchRecordInputTimePointComRespDto.getCustomField() !=null){
          QueryCycleDetailReq queryCycleDetailReq=new QueryCycleDetailReq();
  queryCycleDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:478004_1_23297
if(implementMatchRecordInputTimePointComRespDto!=null){
      queryCycleDetailReq.setCycleId(implementMatchRecordInputTimePointComRespDto.getCustomField());//SimpleFieldAssign//sourceId:477970_1_23297
    }

    /*3-4-04查询周期详情[2004]   */
    Assert.isNull(queryCycleDetailReq.getCycleId(),"D3判断当前时间点是否节假日(公共)-3-4-04查询周期详情-周期ID不能为空",false);
Assert.isNull(queryCycleDetailReq.getSubjectLifeCycle(),"D3判断当前时间点是否节假日(公共)-3-4-04查询周期详情-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryCycleDetail(queryCycleDetailReq);


      omsCycle_1 = omsCycle;
           }
      }
else if((reqDto!= null&&  reqDto.getCalculateStartPointOrEndPoint() !=null && reqDto.getCalculateStartPointOrEndPoint().equals("START_POINT"))){
       //elseif(D3判断当前时间点是否节假日(公共).计算开始起点还是结束终点 等于 起点)  23285

ImplementMatchRecordInputTimePointComRespDto implementMatchRecordInputTimePointComRespDto_2 = null;
    ImplementMatchRecordInputTimePointComReqDto implementMatchRecordInputTimePointComReqDto_1=new ImplementMatchRecordInputTimePointComReqDto();
  if(reqDto!= null&&  reqDto.getCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getCycleList())){
      implementMatchRecordInputTimePointComReqDto_1.setMatchRecordInputTimePointList(//objList-to-objLists
        reqDto.getCycleList().stream().map(item -> {
      MatchRecordInputTimePointDto elm = new MatchRecordInputTimePointDto();
      if(item!=null){
      elm.setCustomField(item.getCycleId());//SimpleFieldAssign//sourceId:126162_2_23287
elm.setComTimeField(item.getCycleStartTime());//SimpleFieldAssign//sourceId:126163_2_23287
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:477689_1_23287
    }
if(reqDto!=null){
      implementMatchRecordInputTimePointComReqDto_1.setComTimeField(reqDto.getComTimeField());//SimpleFieldAssign//sourceId:477688_1_23287
    }

    /*D2执行入参时间匹配记录(公共)[5351]   */
    Assert.isNull(implementMatchRecordInputTimePointComReqDto_1.getComTimeField(),"D3判断当前时间点是否节假日(公共)-D2执行入参时间匹配记录(公共)-通用时间字段不能为空",false);
      implementMatchRecordInputTimePointComRespDto_2 = fwCompInterfaceModeClient.implementMatchRecordInputTimePointCom(implementMatchRecordInputTimePointComReqDto_1).getData();



OmsCycle omsCycle_2 = null;
    if(implementMatchRecordInputTimePointComRespDto_2 !=null&&implementMatchRecordInputTimePointComRespDto_2!= null&&  implementMatchRecordInputTimePointComRespDto_2.getCustomField() !=null){
          QueryCycleDetailReq queryCycleDetailReq_1=new QueryCycleDetailReq();
  queryCycleDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:478004_1_23298
if(implementMatchRecordInputTimePointComRespDto_2!=null){
      queryCycleDetailReq_1.setCycleId(implementMatchRecordInputTimePointComRespDto_2.getCustomField());//SimpleFieldAssign//sourceId:477970_1_23298
    }

    /*3-4-04查询周期详情[2004]   */
    Assert.isNull(queryCycleDetailReq_1.getCycleId(),"D3判断当前时间点是否节假日(公共)-3-4-04查询周期详情-周期ID不能为空",false);
Assert.isNull(queryCycleDetailReq_1.getSubjectLifeCycle(),"D3判断当前时间点是否节假日(公共)-3-4-04查询周期详情-主体生命周期不能为空",false);
      omsCycle_2 = mOmsCycleService.queryCycleDetail(queryCycleDetailReq_1);


      omsCycle_1 = omsCycle_2;
           }
    }
JudgeCurrentTimePointIshHolidayComRespDto retData = new JudgeCurrentTimePointIshHolidayComRespDto();
  if(omsCycle_1!=null){
      retData.setCycleId(omsCycle_1.getCycleId());//SimpleFieldAssign//sourceId:478008_1
retData.setCycleStartTime(omsCycle_1.getCycleStartTime());//SimpleFieldAssign//sourceId:478009_1
retData.setCycleEndTime(omsCycle_1.getCycleEndTime());//SimpleFieldAssign//sourceId:478010_1
    }




return retData;
  }
/**
   * D3判断区间内节假日天数(公共)[5372]
   * gen by moon at 12/2/2022, 10:28:49 PM
   */
  @Trace(operationName = "D3判断区间内节假日天数(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public JudgeIntervalHolidayDaysComRespDto judgeIntervalHolidayDaysCom(JudgeIntervalHolidayDaysComReqDto reqDto){


      ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_2 =null;
//virtualUsage M3执行业务应用构造出入参字段（特殊方法）  23447
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setHolidayHandlingSenceType(reqDto.getHolidayHandlingSenceType());//SimpleFieldAssign//sourceId:481757_1_23447
receptionServiceReq.setCalculateStartPointOrEndPoint(reqDto.getCalculateStartPointOrEndPoint());//SimpleFieldAssign//sourceId:481758_1_23447
receptionServiceReq.setIsMoveBeginPoint(reqDto.getIsMoveBeginPoint());//SimpleFieldAssign//sourceId:481760_1_23447
receptionServiceReq.setComNumField(reqDto.getComNumField());//SimpleFieldAssign//sourceId:481759_1_23447
receptionServiceReq.setComNumField1(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481495_1_23447
receptionServiceReq.setComNumField2(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481496_1_23447
    }

    /*M3执行业务应用构造出入参字段（特殊方法）[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getHolidayHandlingSenceType(),"D3判断区间内节假日天数(公共)-M3执行业务应用构造出入参字段（特殊方法）-节假日处理业务场景类型不能为空",false);
Assert.isNull(receptionServiceReq.getCalculateStartPointOrEndPoint(),"D3判断区间内节假日天数(公共)-M3执行业务应用构造出入参字段（特殊方法）-计算开始起点还是结束终点不能为空",false);
Assert.isNull(receptionServiceReq.getIsMoveBeginPoint(),"D3判断区间内节假日天数(公共)-M3执行业务应用构造出入参字段（特殊方法）-因节假日起始点要偏移不能为空",false);
Assert.isNull(receptionServiceReq.getComNumField(),"D3判断区间内节假日天数(公共)-M3执行业务应用构造出入参字段（特殊方法）-通用数值字段不能为空",false);
      receptionServiceRes = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getCalculateStartPointOrEndPoint() !=null && reqDto.getCalculateStartPointOrEndPoint().equals("END_POINT"))) {
        //if(D3判断区间内节假日天数(公共).计算开始起点还是结束终点 等于 终点)  23448

if((reqDto!= null&&  reqDto.getIsMoveBeginPoint() !=null && reqDto.getIsMoveBeginPoint().equals("FALSE"))) {
        //if(D3判断区间内节假日天数(公共).因节假日起始点要偏移 等于 否)  23451

if((reqDto!= null&& reqDto.getComNumField() == 1L)) {
        //if(D3判断区间内节假日天数(公共).通用数值字段 等于 1)  23454

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_1 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_1=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_1.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23457
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_1 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_1);


      receptionServiceRes_2 = receptionServiceRes_1;
      }
else if((reqDto!= null&& reqDto.getComNumField() == 2L)){
       //elseif(D3判断区间内节假日天数(公共).通用数值字段 等于 2)  23461

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_3 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_2=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_2.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23475
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_3 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_2);


      receptionServiceRes_2 = receptionServiceRes_3;
CalculateAdditionOfTwoNumServiceComRespDto calculateAdditionOfTwoNumServiceComRespDto = null;
    CalculateAdditionOfTwoNumServiceComReqDto calculateAdditionOfTwoNumServiceComReqDto=new CalculateAdditionOfTwoNumServiceComReqDto();
  calculateAdditionOfTwoNumServiceComReqDto.setCalcPara2(Double.valueOf("1"));//CUSTOM_CONVENTION//sourceId:481807_1_23488
if(receptionServiceRes_3!=null){
      calculateAdditionOfTwoNumServiceComReqDto.setCalcPara1(receptionServiceRes_3.getCalcCount()!=null?Double.valueOf(receptionServiceRes_3.getCalcCount()):null);//SimpleFieldAssign//sourceId:481806_1_23488
    }

    /*D4-计算两个数相加服务(公共)[3372]   */
    Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto.getCalcPara1(),"D3判断区间内节假日天数(公共)-D4-计算两个数相加服务(公共)-计算入参1不能为空",false);
Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto.getCalcPara2(),"D3判断区间内节假日天数(公共)-D4-计算两个数相加服务(公共)-计算入参2不能为空",false);
      calculateAdditionOfTwoNumServiceComRespDto = fwCalcCalculationRulesClient.calculateAdditionOfTwoNumServiceCom(calculateAdditionOfTwoNumServiceComReqDto).getData();



//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_4 = null;
    if(calculateAdditionOfTwoNumServiceComRespDto !=null){
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_3=new ImplementBizConstructAccessParameterFieldReqDto();
  if(calculateAdditionOfTwoNumServiceComRespDto!=null){
      receptionServiceReq_3.setCalcCount(calculateAdditionOfTwoNumServiceComRespDto.getCalcResult().longValue());//SimpleFieldAssign//sourceId:481755_1_23492
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_3.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_4 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_3);


      receptionServiceRes_2 = receptionServiceRes_4;
           }
    }
else if((reqDto!= null&& reqDto.getComNumField() == 3L)){
       //elseif(D3判断区间内节假日天数(公共).通用数值字段 等于 3)  23462

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_5 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_4=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_4.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23476
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_4.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_5 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_4);


      receptionServiceRes_2 = receptionServiceRes_5;
    }
      }
else if((reqDto!= null&&  reqDto.getIsMoveBeginPoint() !=null && reqDto.getIsMoveBeginPoint().equals("TRUE"))){
       //elseif(D3判断区间内节假日天数(公共).因节假日起始点要偏移 等于 是)  23452

if((reqDto!= null&& reqDto.getComNumField() == 0L)) {
        //if(D3判断区间内节假日天数(公共).通用数值字段 等于 0)  23456

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_6 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_5=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_5.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23477
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_5.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_6 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_5);


      receptionServiceRes_2 = receptionServiceRes_6;
      }
else if((reqDto!= null&& reqDto.getComNumField() == 1L)){
       //elseif(D3判断区间内节假日天数(公共).通用数值字段 等于 1)  23458

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_7 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_6=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_6.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23478
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_6.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_7 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_6);


      receptionServiceRes_2 = receptionServiceRes_7;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 2L)){
       //elseif(D3判断区间内节假日天数(公共).通用数值字段 等于 2)  23459

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_8 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_7=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_7.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23479
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_7.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_8 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_7);


      receptionServiceRes_2 = receptionServiceRes_8;
CalculateAdditionOfTwoNumServiceComRespDto calculateAdditionOfTwoNumServiceComRespDto_2 = null;
    CalculateAdditionOfTwoNumServiceComReqDto calculateAdditionOfTwoNumServiceComReqDto_1=new CalculateAdditionOfTwoNumServiceComReqDto();
  calculateAdditionOfTwoNumServiceComReqDto_1.setCalcPara2(Double.valueOf("1"));//CUSTOM_CONVENTION//sourceId:481807_1_23489
if(receptionServiceRes_8!=null){
      calculateAdditionOfTwoNumServiceComReqDto_1.setCalcPara1(receptionServiceRes_8.getCalcCount()!=null?Double.valueOf(receptionServiceRes_8.getCalcCount()):null);//SimpleFieldAssign//sourceId:481806_1_23489
    }

    /*D4-计算两个数相加服务(公共)[3372]   */
    Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto_1.getCalcPara1(),"D3判断区间内节假日天数(公共)-D4-计算两个数相加服务(公共)-计算入参1不能为空",false);
Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto_1.getCalcPara2(),"D3判断区间内节假日天数(公共)-D4-计算两个数相加服务(公共)-计算入参2不能为空",false);
      calculateAdditionOfTwoNumServiceComRespDto_2 = fwCalcCalculationRulesClient.calculateAdditionOfTwoNumServiceCom(calculateAdditionOfTwoNumServiceComReqDto_1).getData();



//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_9 = null;
    if(calculateAdditionOfTwoNumServiceComRespDto_2 !=null){
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_8=new ImplementBizConstructAccessParameterFieldReqDto();
  if(calculateAdditionOfTwoNumServiceComRespDto_2!=null){
      receptionServiceReq_8.setCalcCount(calculateAdditionOfTwoNumServiceComRespDto_2.getCalcResult().longValue());//SimpleFieldAssign//sourceId:481755_1_23493
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_8.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_9 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_8);


      receptionServiceRes_2 = receptionServiceRes_9;
           }
    }
else if((reqDto!= null&& reqDto.getComNumField() == 3L)){
       //elseif(D3判断区间内节假日天数(公共).通用数值字段 等于 3)  23460

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_10 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_9=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_9.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23480
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_9.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_10 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_9);


      receptionServiceRes_2 = receptionServiceRes_10;
    }
    }
      }
else if((reqDto!= null&&  reqDto.getCalculateStartPointOrEndPoint() !=null && reqDto.getCalculateStartPointOrEndPoint().equals("START_POINT"))){
       //elseif(D3判断区间内节假日天数(公共).计算开始起点还是结束终点 等于 起点)  23449

if((reqDto!= null&&  reqDto.getIsMoveBeginPoint() !=null && reqDto.getIsMoveBeginPoint().equals("FALSE"))) {
        //if(D3判断区间内节假日天数(公共).因节假日起始点要偏移 等于 否)  23464

if((reqDto!= null&& reqDto.getComNumField() == 1L)) {
        //if(D3判断区间内节假日天数(公共).通用数值字段 等于 1)  23467

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_11 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_10=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_10.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23481
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_10.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_11 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_10);


      receptionServiceRes_2 = receptionServiceRes_11;
      }
else if((reqDto!= null&& reqDto.getComNumField() == 2L)){
       //elseif(D3判断区间内节假日天数(公共).通用数值字段 等于 2)  23468

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_12 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_11=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_11.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23482
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_11.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_12 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_11);


      receptionServiceRes_2 = receptionServiceRes_12;
CalculateAdditionOfTwoNumServiceComRespDto calculateAdditionOfTwoNumServiceComRespDto_3 = null;
    CalculateAdditionOfTwoNumServiceComReqDto calculateAdditionOfTwoNumServiceComReqDto_2=new CalculateAdditionOfTwoNumServiceComReqDto();
  calculateAdditionOfTwoNumServiceComReqDto_2.setCalcPara2(Double.valueOf("1"));//CUSTOM_CONVENTION//sourceId:481807_1_23490
if(receptionServiceRes_12!=null){
      calculateAdditionOfTwoNumServiceComReqDto_2.setCalcPara1(receptionServiceRes_12.getCalcCount()!=null?Double.valueOf(receptionServiceRes_12.getCalcCount()):null);//SimpleFieldAssign//sourceId:481806_1_23490
    }

    /*D4-计算两个数相加服务(公共)[3372]   */
    Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto_2.getCalcPara1(),"D3判断区间内节假日天数(公共)-D4-计算两个数相加服务(公共)-计算入参1不能为空",false);
Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto_2.getCalcPara2(),"D3判断区间内节假日天数(公共)-D4-计算两个数相加服务(公共)-计算入参2不能为空",false);
      calculateAdditionOfTwoNumServiceComRespDto_3 = fwCalcCalculationRulesClient.calculateAdditionOfTwoNumServiceCom(calculateAdditionOfTwoNumServiceComReqDto_2).getData();



//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_13 = null;
    if(calculateAdditionOfTwoNumServiceComRespDto_3 !=null){
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_12=new ImplementBizConstructAccessParameterFieldReqDto();
  if(calculateAdditionOfTwoNumServiceComRespDto_3!=null){
      receptionServiceReq_12.setCalcCount(calculateAdditionOfTwoNumServiceComRespDto_3.getCalcResult().longValue());//SimpleFieldAssign//sourceId:481755_1_23494
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_12.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_13 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_12);


      receptionServiceRes_2 = receptionServiceRes_13;
           }
    }
else if((reqDto!= null&& reqDto.getComNumField() == 3L)){
       //elseif(D3判断区间内节假日天数(公共).通用数值字段 等于 3)  23469

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_14 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_13=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_13.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23483
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_13.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_14 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_13);


      receptionServiceRes_2 = receptionServiceRes_14;
    }
      }
else if((reqDto!= null&&  reqDto.getIsMoveBeginPoint() !=null && reqDto.getIsMoveBeginPoint().equals("TRUE"))){
       //elseif(D3判断区间内节假日天数(公共).因节假日起始点要偏移 等于 是)  23465

if((reqDto!= null&& reqDto.getComNumField() == 0L)) {
        //if(D3判断区间内节假日天数(公共).通用数值字段 等于 0)  23471

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_15 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_14=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_14.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23484
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_14.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_15 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_14);


      receptionServiceRes_2 = receptionServiceRes_15;
      }
else if((reqDto!= null&& reqDto.getComNumField() == 1L)){
       //elseif(D3判断区间内节假日天数(公共).通用数值字段 等于 1)  23472

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_16 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_15=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_15.setCalcCount(reqDto.getComNumField());//SimpleFieldAssign//sourceId:481755_1_23485
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_15.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_16 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_15);


      receptionServiceRes_2 = receptionServiceRes_16;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 2L)){
       //elseif(D3判断区间内节假日天数(公共).通用数值字段 等于 2)  23473

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_17 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_16=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_16.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23486
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_16.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_17 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_16);


      receptionServiceRes_2 = receptionServiceRes_17;
CalculateAdditionOfTwoNumServiceComRespDto calculateAdditionOfTwoNumServiceComRespDto_4 = null;
    CalculateAdditionOfTwoNumServiceComReqDto calculateAdditionOfTwoNumServiceComReqDto_3=new CalculateAdditionOfTwoNumServiceComReqDto();
  calculateAdditionOfTwoNumServiceComReqDto_3.setCalcPara2(Double.valueOf("1"));//CUSTOM_CONVENTION//sourceId:481807_1_23491
if(receptionServiceRes_17!=null){
      calculateAdditionOfTwoNumServiceComReqDto_3.setCalcPara1(receptionServiceRes_17.getCalcCount()!=null?Double.valueOf(receptionServiceRes_17.getCalcCount()):null);//SimpleFieldAssign//sourceId:481806_1_23491
    }

    /*D4-计算两个数相加服务(公共)[3372]   */
    Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto_3.getCalcPara1(),"D3判断区间内节假日天数(公共)-D4-计算两个数相加服务(公共)-计算入参1不能为空",false);
Assert.isNull(calculateAdditionOfTwoNumServiceComReqDto_3.getCalcPara2(),"D3判断区间内节假日天数(公共)-D4-计算两个数相加服务(公共)-计算入参2不能为空",false);
      calculateAdditionOfTwoNumServiceComRespDto_4 = fwCalcCalculationRulesClient.calculateAdditionOfTwoNumServiceCom(calculateAdditionOfTwoNumServiceComReqDto_3).getData();



//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_18 = null;
    if(calculateAdditionOfTwoNumServiceComRespDto_4 !=null){
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_17=new ImplementBizConstructAccessParameterFieldReqDto();
  if(calculateAdditionOfTwoNumServiceComRespDto_4!=null){
      receptionServiceReq_17.setCalcCount(calculateAdditionOfTwoNumServiceComRespDto_4.getCalcResult().longValue());//SimpleFieldAssign//sourceId:481755_1_23495
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_17.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_18 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_17);


      receptionServiceRes_2 = receptionServiceRes_18;
           }
    }
else if((reqDto!= null&& reqDto.getComNumField() == 3L)){
       //elseif(D3判断区间内节假日天数(公共).通用数值字段 等于 3)  23474

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_19 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_18=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_18.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23487
    }

    /*M3传输区间节假日统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_18.getCalcCount(),"D3判断区间内节假日天数(公共)-M3传输区间节假日统计数-统计数不能为空",false);
      receptionServiceRes_19 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_18);


      receptionServiceRes_2 = receptionServiceRes_19;
    }
    }
    }
JudgeIntervalHolidayDaysComRespDto retData = new JudgeIntervalHolidayDaysComRespDto();
  if(receptionServiceRes_2!=null){
      retData.setCalcCount(receptionServiceRes_2.getCalcCount());//SimpleFieldAssign//sourceId:481773_1
    }




return retData;
  }
/**
   * D3执行判断时间点是否节假日(公共)[5368]
   * gen by moon at 12/2/2022, 10:29:12 PM
   */
  @Trace(operationName = "D3执行判断时间点是否节假日(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementJudgeCurrentTimePointIshHolidayComRespDto implementJudgeCurrentTimePointIshHolidayCom(ImplementJudgeCurrentTimePointIshHolidayComReqDto reqDto){


      JudgeCurrentTimePointIshHolidayComRespDto judgeCurrentTimePointIshHolidayComRespDto_1 =null;
//virtualUsage M3执行业务应用构造出入参字段（特殊方法）  23422
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!= null&&  reqDto.getFillingIntervalHolidayList() !=null&& !CollectionUtil.isEmpty(reqDto.getFillingIntervalHolidayList())){
      receptionServiceReq.setCycleList(reqDto.getFillingIntervalHolidayList().stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:480577_1_23422
    }
if(reqDto!=null){
      receptionServiceReq.setCalculateStartPointOrEndPoint(reqDto.getCalculateStartPointOrEndPoint());//SimpleFieldAssign//sourceId:480539_1_23422
receptionServiceReq.setComTimeField(reqDto.getComTimeField());//SimpleFieldAssign//sourceId:480576_1_23422
    }

    /*M3执行业务应用构造出入参字段（特殊方法）[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCalculateStartPointOrEndPoint(),"D3执行判断时间点是否节假日(公共)-M3执行业务应用构造出入参字段（特殊方法）-计算开始起点还是结束终点不能为空",false);
Assert.isNull(receptionServiceReq.getComTimeField(),"D3执行判断时间点是否节假日(公共)-M3执行业务应用构造出入参字段（特殊方法）-通用时间字段不能为空",false);
      receptionServiceRes = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getCalculateStartPointOrEndPoint() !=null && reqDto.getCalculateStartPointOrEndPoint().equals("END_POINT")&&reqDto!= null&&  reqDto.getEvaluationRangeHolidayList() !=null && reqDto.getEvaluationRangeHolidayList().size()>0)) {
        //if((D3执行判断时间点是否节假日(公共).计算开始起点还是结束终点 等于 终点 and D3执行判断时间点是否节假日(公共).评价区间节假日列表数据集条数 大于 0))  23415

JudgeCurrentTimePointIshHolidayComRespDto judgeCurrentTimePointIshHolidayComRespDto = null;
    JudgeCurrentTimePointIshHolidayComReqDto judgeCurrentTimePointIshHolidayComReqDto=new JudgeCurrentTimePointIshHolidayComReqDto();
  if(reqDto!= null&&  reqDto.getEvaluationRangeHolidayList() !=null&& !CollectionUtil.isEmpty(reqDto.getEvaluationRangeHolidayList())){
      judgeCurrentTimePointIshHolidayComReqDto.setCycleList(reqDto.getEvaluationRangeHolidayList().stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:480262_1_23417
    }
if(reqDto!=null){
      judgeCurrentTimePointIshHolidayComReqDto.setCalculateStartPointOrEndPoint(reqDto.getCalculateStartPointOrEndPoint());//SimpleFieldAssign//sourceId:480263_1_23417
judgeCurrentTimePointIshHolidayComReqDto.setComTimeField(reqDto.getComTimeField());//SimpleFieldAssign//sourceId:480264_1_23417
    }

    /*D3判断当前时间点是否节假日(公共)[5366]   */
    Assert.isNull(judgeCurrentTimePointIshHolidayComReqDto.getCalculateStartPointOrEndPoint(),"D3执行判断时间点是否节假日(公共)-D3判断当前时间点是否节假日(公共)-计算开始起点还是结束终点不能为空",false);
Assert.isNull(judgeCurrentTimePointIshHolidayComReqDto.getComTimeField(),"D3执行判断时间点是否节假日(公共)-D3判断当前时间点是否节假日(公共)-通用时间字段不能为空",false);
      judgeCurrentTimePointIshHolidayComRespDto = judgeCurrentTimePointIshHolidayCom(judgeCurrentTimePointIshHolidayComReqDto);


      judgeCurrentTimePointIshHolidayComRespDto_1 = judgeCurrentTimePointIshHolidayComRespDto;
      }
else if((reqDto!= null&&  reqDto.getCalculateStartPointOrEndPoint() !=null && reqDto.getCalculateStartPointOrEndPoint().equals("START_POINT")&&reqDto!= null&&  reqDto.getFillingIntervalHolidayList() !=null && reqDto.getFillingIntervalHolidayList().size()>0)){
       //elseif((D3执行判断时间点是否节假日(公共).计算开始起点还是结束终点 等于 起点 and D3执行判断时间点是否节假日(公共).填报区间节假日列表数据集条数 大于 0))  23416

JudgeCurrentTimePointIshHolidayComRespDto judgeCurrentTimePointIshHolidayComRespDto_2 = null;
    JudgeCurrentTimePointIshHolidayComReqDto judgeCurrentTimePointIshHolidayComReqDto_1=new JudgeCurrentTimePointIshHolidayComReqDto();
  if(reqDto!= null&&  reqDto.getFillingIntervalHolidayList() !=null&& !CollectionUtil.isEmpty(reqDto.getFillingIntervalHolidayList())){
      judgeCurrentTimePointIshHolidayComReqDto_1.setCycleList(reqDto.getFillingIntervalHolidayList().stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:480262_1_23418
    }
if(reqDto!=null){
      judgeCurrentTimePointIshHolidayComReqDto_1.setCalculateStartPointOrEndPoint(reqDto.getCalculateStartPointOrEndPoint());//SimpleFieldAssign//sourceId:480263_1_23418
judgeCurrentTimePointIshHolidayComReqDto_1.setComTimeField(reqDto.getComTimeField());//SimpleFieldAssign//sourceId:480264_1_23418
    }

    /*D3判断当前时间点是否节假日(公共)[5366]   */
    Assert.isNull(judgeCurrentTimePointIshHolidayComReqDto_1.getCalculateStartPointOrEndPoint(),"D3执行判断时间点是否节假日(公共)-D3判断当前时间点是否节假日(公共)-计算开始起点还是结束终点不能为空",false);
Assert.isNull(judgeCurrentTimePointIshHolidayComReqDto_1.getComTimeField(),"D3执行判断时间点是否节假日(公共)-D3判断当前时间点是否节假日(公共)-通用时间字段不能为空",false);
      judgeCurrentTimePointIshHolidayComRespDto_2 = judgeCurrentTimePointIshHolidayCom(judgeCurrentTimePointIshHolidayComReqDto_1);


      judgeCurrentTimePointIshHolidayComRespDto_1 = judgeCurrentTimePointIshHolidayComRespDto_2;
    }
ImplementJudgeCurrentTimePointIshHolidayComRespDto retData = new ImplementJudgeCurrentTimePointIshHolidayComRespDto();
  if(judgeCurrentTimePointIshHolidayComRespDto_1!=null){
      retData.setCycleId(judgeCurrentTimePointIshHolidayComRespDto_1.getCycleId());//SimpleFieldAssign//sourceId:480547_1
retData.setCycleStartTime(judgeCurrentTimePointIshHolidayComRespDto_1.getCycleStartTime());//SimpleFieldAssign//sourceId:480548_1
retData.setCycleEndTime(judgeCurrentTimePointIshHolidayComRespDto_1.getCycleEndTime());//SimpleFieldAssign//sourceId:480549_1
    }




return retData;
  }
/**
   * D3判断区间内天数(公共)[5372]
   * gen by moon at 5/24/2023, 11:59:23 PM
   */
  @Trace(operationName = "D3判断区间内天数(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public JudgeIntervalDaysComRespDto judgeIntervalDaysCom(JudgeIntervalDaysComReqDto reqDto){


      ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_2 =null;
//virtualUsage M3执行业务应用构造出入参字段（特殊方法）  23447
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setHolidayHandlingSenceType(reqDto.getHolidayHandlingSenceType());//SimpleFieldAssign//sourceId:481757_1_23447
receptionServiceReq.setCalculateStartPointOrEndPoint(reqDto.getCalculateStartPointOrEndPoint());//SimpleFieldAssign//sourceId:481758_1_23447
receptionServiceReq.setIsMoveBeginPoint(reqDto.getIsMoveBeginPoint());//SimpleFieldAssign//sourceId:481760_1_23447
receptionServiceReq.setComNumField(reqDto.getComNumField());//SimpleFieldAssign//sourceId:481759_1_23447
receptionServiceReq.setComNumField1(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481495_1_23447
receptionServiceReq.setComNumField2(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481496_1_23447
    }

    /*M3执行业务应用构造出入参字段（特殊方法）[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getHolidayHandlingSenceType(),"D3判断区间内天数(公共)-M3执行业务应用构造出入参字段（特殊方法）-节假日处理业务场景类型不能为空",false);
Assert.isNull(receptionServiceReq.getCalculateStartPointOrEndPoint(),"D3判断区间内天数(公共)-M3执行业务应用构造出入参字段（特殊方法）-计算开始起点还是结束终点不能为空",false);
Assert.isNull(receptionServiceReq.getIsMoveBeginPoint(),"D3判断区间内天数(公共)-M3执行业务应用构造出入参字段（特殊方法）-因节假日起始点要偏移不能为空",false);
Assert.isNull(receptionServiceReq.getComNumField(),"D3判断区间内天数(公共)-M3执行业务应用构造出入参字段（特殊方法）-通用数值字段（整数型）不能为空",false);
      receptionServiceRes = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getCalculateStartPointOrEndPoint() !=null && reqDto.getCalculateStartPointOrEndPoint().equals("END_POINT"))) {
        //if(D3判断区间内天数(公共).计算开始起点还是结束终点 等于 终点)  23448

if((reqDto!= null&&  reqDto.getIsMoveBeginPoint() !=null && reqDto.getIsMoveBeginPoint().equals("FALSE"))) {
        //if(D3判断区间内天数(公共).因节假日起始点要偏移 等于 否)  23451

if((reqDto!= null&& reqDto.getComNumField() == 1L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_SENCE"))) {
        //if((D3判断区间内天数(公共).通用数值字段 等于 1 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报场景))  23828

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_1 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_1=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_1.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23829
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_1 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_1);


      receptionServiceRes_2 = receptionServiceRes_1;
      }
else if((reqDto!= null&& reqDto.getComNumField() == 1L)&&(reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("EVALUATE_SENCE")||reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif(D3判断区间内天数(公共).通用数值字段 等于 1 and (D3判断区间内天数(公共).节假日处理业务场景类型 等于 评价场景 or D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23454

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_3 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_2=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_2.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23457
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_3 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_2);


      receptionServiceRes_2 = receptionServiceRes_3;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 2L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif((D3判断区间内天数(公共).通用数值字段 等于 2 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23461

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_4 = null;
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_3=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_3.setComNumField(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:487139_1_23710

    /*M3约定值为“1”代表包含当前自然日偏移1个天数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_3.getComNumField(),"D3判断区间内天数(公共)-M3约定值为“1”代表包含当前自然日偏移1个天数-通用数值字段（整数型）不能为空",false);
      receptionServiceRes_4 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_3);



//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_6 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_4=new ImplementBizConstructAccessParameterFieldReqDto();
  if(receptionServiceRes_4!=null){
      receptionServiceReq_4.setCalcCount(receptionServiceRes_4.getComNumField());//SimpleFieldAssign//sourceId:481755_1_23492
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_4.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_6 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_4);


      receptionServiceRes_2 = receptionServiceRes_6;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 3L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif((D3判断区间内天数(公共).通用数值字段 等于 3 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23462

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_7 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_5=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_5.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23476
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_5.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_7 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_5);


      receptionServiceRes_2 = receptionServiceRes_7;
      }
      }
else if((reqDto!= null&&  reqDto.getIsMoveBeginPoint() !=null && reqDto.getIsMoveBeginPoint().equals("TRUE"))){
       //elseif(D3判断区间内天数(公共).因节假日起始点要偏移 等于 是)  23452

if((reqDto!= null&& reqDto.getComNumField() == 0L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_SENCE"))) {
        //if((D3判断区间内天数(公共).通用数值字段 等于 0 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报场景))  23832

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_8 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_6=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_6.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23833
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_6.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_8 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_6);


      receptionServiceRes_2 = receptionServiceRes_8;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 1L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_SENCE"))){
       //elseif((D3判断区间内天数(公共).通用数值字段 等于 1 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报场景))  23831

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_9 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_7=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_7.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23834
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_7.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_9 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_7);


      receptionServiceRes_2 = receptionServiceRes_9;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 0L)&&(reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("EVALUATE_SENCE")||reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif(D3判断区间内天数(公共).通用数值字段 等于 0 and (D3判断区间内天数(公共).节假日处理业务场景类型 等于 评价场景 or D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23456

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_10 = null;
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_8=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_8.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23477
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_8.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_10 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_8);


      receptionServiceRes_2 = receptionServiceRes_10;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 1L)&&(reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("EVALUATE_SENCE")||reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif(D3判断区间内天数(公共).通用数值字段 等于 1 and (D3判断区间内天数(公共).节假日处理业务场景类型 等于 评价场景 or D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23458

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_11 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_9=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_9.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23478
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_9.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_11 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_9);


      receptionServiceRes_2 = receptionServiceRes_11;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 2L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif((D3判断区间内天数(公共).通用数值字段 等于 2 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23459

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_12 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_10=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_10.setComNumField(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:487139_1_23711

    /*M3约定值为“1”代表包含当前自然日偏移1个天数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_10.getComNumField(),"D3判断区间内天数(公共)-M3约定值为“1”代表包含当前自然日偏移1个天数-通用数值字段（整数型）不能为空",false);
      receptionServiceRes_12 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_10);



//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_13 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_11=new ImplementBizConstructAccessParameterFieldReqDto();
  if(receptionServiceRes_12!=null){
      receptionServiceReq_11.setCalcCount(receptionServiceRes_12.getComNumField());//SimpleFieldAssign//sourceId:481755_1_23493
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_11.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_13 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_11);


      receptionServiceRes_2 = receptionServiceRes_13;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 3L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif((D3判断区间内天数(公共).通用数值字段 等于 3 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23460

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_14 = null;
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_12=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_12.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23480
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_12.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_14 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_12);


      receptionServiceRes_2 = receptionServiceRes_14;
    }
    }
      }
else if((reqDto!= null&&  reqDto.getCalculateStartPointOrEndPoint() !=null && reqDto.getCalculateStartPointOrEndPoint().equals("START_POINT"))){
       //elseif(D3判断区间内天数(公共).计算开始起点还是结束终点 等于 起点)  23449

if((reqDto!= null&&  reqDto.getIsMoveBeginPoint() !=null && reqDto.getIsMoveBeginPoint().equals("FALSE"))) {
        //if(D3判断区间内天数(公共).因节假日起始点要偏移 等于 否)  23464

if((reqDto!= null&& reqDto.getComNumField() == 1L)&&(reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("EVALUATE_SENCE"))) {
        //if(D3判断区间内天数(公共).通用数值字段 等于 1 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 评价场景)  23836

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_15 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_13=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_13.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23839
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_13.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_15 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_13);


      receptionServiceRes_2 = receptionServiceRes_15;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 1L)&&(reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_SENCE")||reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif(D3判断区间内天数(公共).通用数值字段 等于 1 and (D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报场景 or D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23467

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_16 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_14=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_14.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23481
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_14.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_16 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_14);


      receptionServiceRes_2 = receptionServiceRes_16;
      }
else if((reqDto!= null&& reqDto.getComNumField() == 2L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif((D3判断区间内天数(公共).通用数值字段 等于 2 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23468

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_17 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_15=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_15.setComNumField(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:487139_1_23712

    /*M3约定值为“1”代表包含当前自然日偏移1个天数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_15.getComNumField(),"D3判断区间内天数(公共)-M3约定值为“1”代表包含当前自然日偏移1个天数-通用数值字段（整数型）不能为空",false);
      receptionServiceRes_17 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_15);



//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_18 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_16=new ImplementBizConstructAccessParameterFieldReqDto();
  if(receptionServiceRes_17!=null){
      receptionServiceReq_16.setCalcCount(receptionServiceRes_17.getComNumField());//SimpleFieldAssign//sourceId:481755_1_23494
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_16.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_18 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_16);


      receptionServiceRes_2 = receptionServiceRes_18;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 3L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif((D3判断区间内天数(公共).通用数值字段 等于 3 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23469

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_19 = null;
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_17=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_17.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23483
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_17.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_19 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_17);


      receptionServiceRes_2 = receptionServiceRes_19;
    }
      }
else if((reqDto!= null&&  reqDto.getIsMoveBeginPoint() !=null && reqDto.getIsMoveBeginPoint().equals("TRUE"))){
       //elseif(D3判断区间内天数(公共).因节假日起始点要偏移 等于 是)  23465

if((reqDto!= null&& reqDto.getComNumField() == 0L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("EVALUATE_SENCE"))) {
        //if((D3判断区间内天数(公共).通用数值字段 等于 0 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 评价场景))  23842

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_20 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_18=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_18.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23843
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_18.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_20 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_18);


      receptionServiceRes_2 = receptionServiceRes_20;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 1L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("EVALUATE_SENCE"))){
       //elseif((D3判断区间内天数(公共).通用数值字段 等于 1 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 评价场景))  23841

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_21 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_19=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_19.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23844
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_19.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_21 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_19);


      receptionServiceRes_2 = receptionServiceRes_21;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 0L)&&(reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_SENCE")||reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif(D3判断区间内天数(公共).通用数值字段 等于 0 and (D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报场景 or D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23471

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_22 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_20=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_20.setCalcCount(reqDto.getComNumField1());//SimpleFieldAssign//sourceId:481755_1_23484
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_20.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_22 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_20);


      receptionServiceRes_2 = receptionServiceRes_22;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 1L)&&(reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_SENCE")||reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif(D3判断区间内天数(公共).通用数值字段 等于 1 and (D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报场景 or D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23472

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_23 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_21=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_21.setCalcCount(reqDto.getComNumField());//SimpleFieldAssign//sourceId:481755_1_23485
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_21.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_23 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_21);


      receptionServiceRes_2 = receptionServiceRes_23;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 2L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif((D3判断区间内天数(公共).通用数值字段 等于 2 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23473

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_24 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_22=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_22.setComNumField(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:487139_1_23713

    /*M3约定值为“1”代表包含当前自然日偏移1个天数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_22.getComNumField(),"D3判断区间内天数(公共)-M3约定值为“1”代表包含当前自然日偏移1个天数-通用数值字段（整数型）不能为空",false);
      receptionServiceRes_24 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_22);



//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_25 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_23=new ImplementBizConstructAccessParameterFieldReqDto();
  if(receptionServiceRes_24!=null){
      receptionServiceReq_23.setCalcCount(receptionServiceRes_24.getComNumField());//SimpleFieldAssign//sourceId:481755_1_23495
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_23.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_25 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_23);


      receptionServiceRes_2 = receptionServiceRes_25;
    }
else if((reqDto!= null&& reqDto.getComNumField() == 3L&&reqDto!= null&&  reqDto.getHolidayHandlingSenceType() !=null && reqDto.getHolidayHandlingSenceType().equals("FILLOUT_AND_EVALUATE_SENCE"))){
       //elseif((D3判断区间内天数(公共).通用数值字段 等于 3 and D3判断区间内天数(公共).节假日处理业务场景类型 等于 填报评价场景))  23474

//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_26 = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_24=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq_24.setCalcCount(reqDto.getComNumField2());//SimpleFieldAssign//sourceId:481755_1_23487
    }

    /*M3传输区间天数统计数[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_24.getCalcCount(),"D3判断区间内天数(公共)-M3传输区间天数统计数-统计数不能为空",false);
      receptionServiceRes_26 = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq_24);


      receptionServiceRes_2 = receptionServiceRes_26;
    }
    }
    }
JudgeIntervalDaysComRespDto retData = new JudgeIntervalDaysComRespDto();
  if(receptionServiceRes_2!=null){
      retData.setCalcCount(receptionServiceRes_2.getCalcCount());//SimpleFieldAssign//sourceId:481773_1
    }




return retData;
  }
/**
   * D3-4新增周期(公共)[2006]
   * gen by moon at 5/1/2024, 9:00:16 PM
   */
  @Trace(operationName = "D3-4新增周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddCycleComRespDto addCycleCom(AddCycleComReqDto reqDto){


      String string_1 =null;
//步骤0: 3-4-01查周期类型详情 - queryCycleTypeDetail
     OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setIsArchive("FALSE");//sourceId:63213_1
if(reqDto!=null){
      queryCycleTypeDetailReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:327686_1
    }

    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeCode(),"D3-4新增周期(公共)-3-4-01查周期类型详情-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getIsArchive(),"D3-4新增周期(公共)-3-4-01查周期类型详情-是否存档不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycleType== null||  omsCycleType.getCycleTypeId() ==null,"找不到数据，系统异常",false);



//步骤1: M-生成周期排序(特殊方法） - generateOrderNumber
     //ModelCode: getDateTimeOrderNum
        Long  getDateTimeOrderNumRes=CommonFunctionHelper.getDateTimeOrderNum(reqDto.getCycleStartTime(),reqDto.getCycleEndTime());



//步骤2: 3-4-04新增周期 - addCycle
     String string = null;
    if(omsCycleType !=null){
          OmsCycle omsCycle=new OmsCycle();
  if(reqDto!=null){
      omsCycle.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:59182_1
omsCycle.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:59183_1
omsCycle.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:59184_1
omsCycle.setIsHoliday(reqDto.getIsHoliday());//SimpleFieldAssign//sourceId:70810_1
omsCycle.setCycleTypeStandard(reqDto.getCycleTypeStandard());//SimpleFieldAssign//sourceId:59188_1
omsCycle.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:59185_1
omsCycle.setCycleTypeName(reqDto.getCycleTypeName());//SimpleFieldAssign//sourceId:70140_1
omsCycle.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:74894_1
omsCycle.setCycleNumberShortName(reqDto.getCycleNumberShortName());//SimpleFieldAssign//sourceId:74895_1
omsCycle.setPlatformData(reqDto.getPlatformData());//SimpleFieldAssign//sourceId:59189_1
omsCycle.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:59190_1
    }
if(omsCycleType!=null){
      omsCycle.setCycleSystemCode(omsCycleType.getCycleSystemCode());//SimpleFieldAssign//sourceId:259711_1
    }
if(getDateTimeOrderNumRes!=null){
      omsCycle.setOrderNumber(getDateTimeOrderNumRes!=null?getDateTimeOrderNumRes.longValue():null);//SimpleFieldAssign//sourceId:70142_1
    }

    /*3-4-04新增周期[2001]   */
    Assert.isNull(omsCycle.getCycleStandardName(),"D3-4新增周期(公共)-3-4-04新增周期-周期名称不能为空",false);
Assert.isNull(omsCycle.getCycleStartTime(),"D3-4新增周期(公共)-3-4-04新增周期-周期开始时间不能为空",false);
Assert.isNull(omsCycle.getCycleEndTime(),"D3-4新增周期(公共)-3-4-04新增周期-周期结束时间不能为空",false);
Assert.isNull(omsCycle.getIsHoliday(),"D3-4新增周期(公共)-3-4-04新增周期-是否节假日不能为空",false);
Assert.isNull(omsCycle.getCycleTypeStandard(),"D3-4新增周期(公共)-3-4-04新增周期-冗余周期类型标准化不能为空",false);
Assert.isNull(omsCycle.getCycleTypeCode(),"D3-4新增周期(公共)-3-4-04新增周期-周期类型标识不能为空",false);
Assert.isNull(omsCycle.getCycleTypeName(),"D3-4新增周期(公共)-3-4-04新增周期-周期类型名称不能为空",false);
Assert.isNull(omsCycle.getPlatformData(),"D3-4新增周期(公共)-3-4-04新增周期-是否是平台不能为空",false);
Assert.isNull(omsCycle.getCycleSystemCode(),"D3-4新增周期(公共)-3-4-04新增周期-周期体系类型标识不能为空",false);
Assert.isNull(omsCycle.getOrderNumber(),"D3-4新增周期(公共)-3-4-04新增周期-排序不能为空",false);
Assert.isNull(omsCycle.getSubjectLifeCycle(),"D3-4新增周期(公共)-3-4-04新增周期-主体生命周期不能为空",false);
      string = mOmsCycleService.addCycle(omsCycle)/*vcase invoke 本地 method 方法调用;*/;


      string_1 = string;
           }

AddCycleComRespDto retData = new AddCycleComRespDto();
  if(string_1!=null){
      retData.setCycleId(string_1);//SimpleFieldAssign//sourceId:59201_1
    }




return retData;
  }
/**
   * D3自动生成标准工作与节假日(公共)[5374]
   * gen by moon at 5/8/2024, 2:07:35 PM
   */
  @Trace(operationName = "D3自动生成标准工作与节假日(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AutoAenerateStandardWorkingDaysHolidaysComRespDto autoAenerateStandardWorkingDaysHolidaysCom(AutoAenerateStandardWorkingDaysHolidaysComReqDto reqDto){


      //virtualUsage M3接收入参字段  23521
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
receptionServiceReq.setCycleTypeUsage(reqDto.getCycleTypeUsage());//SimpleFieldAssign//sourceId:482819_1_23521
receptionServiceReq.setComTimeField1(reqDto.getComTimeField1());//SimpleFieldAssign//sourceId:482831_1_23521
receptionServiceReq.setComTimeField2(reqDto.getComTimeField2());//SimpleFieldAssign//sourceId:482832_1_23521
    }

    /*M3接收入参字段[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCycleTypeUsage(),"D3自动生成标准工作与节假日(公共)-M3接收入参字段-周期类型用途不能为空",false);
Assert.isNull(receptionServiceReq.getComTimeField1(),"D3自动生成标准工作与节假日(公共)-M3接收入参字段-通用时间字段1不能为空",false);
Assert.isNull(receptionServiceReq.getComTimeField2(),"D3自动生成标准工作与节假日(公共)-M3接收入参字段-通用时间字段2不能为空",false);
      receptionServiceRes = nbCycleType.implementBizConstructAccessParameterField(receptionServiceReq);



//virtualUsage D2执行分析自然日数据集(公共)  23530
      ImplementAnalyzeNaturalDayDataComRespDto implementAnalyzeNaturalDayDataComRespDto = null;
    ImplementAnalyzeNaturalDayDataComReqDto implementAnalyzeNaturalDayDataComReqDto=new ImplementAnalyzeNaturalDayDataComReqDto();
  implementAnalyzeNaturalDayDataComReqDto.setTwoPointTimePeriodType("INCLUDE_BEGIN_AND_END_DAYS");//sourceId:486870_1_23530
  if(reqDto!=null){
      implementAnalyzeNaturalDayDataComReqDto.setComTimeField1(reqDto.getComTimeField1());//SimpleFieldAssign//sourceId:482542_1_23530
implementAnalyzeNaturalDayDataComReqDto.setComTimeField2(reqDto.getComTimeField2());//SimpleFieldAssign//sourceId:482543_1_23530
    }

    /*D2执行分析自然日数据集(公共)[5377]   */
    Assert.isNull(implementAnalyzeNaturalDayDataComReqDto.getComTimeField1(),"D3自动生成标准工作与节假日(公共)-D2执行分析自然日数据集(公共)-通用时间字段1不能为空",false);
Assert.isNull(implementAnalyzeNaturalDayDataComReqDto.getComTimeField2(),"D3自动生成标准工作与节假日(公共)-D2执行分析自然日数据集(公共)-通用时间字段2不能为空",false);
Assert.isNull(implementAnalyzeNaturalDayDataComReqDto.getTwoPointTimePeriodType(),"D3自动生成标准工作与节假日(公共)-D2执行分析自然日数据集(公共)-两点时间段含头尾类型不能为空",false);
      implementAnalyzeNaturalDayDataComRespDto = fwCompInterfaceModeClient.implementAnalyzeNaturalDayDataCom(implementAnalyzeNaturalDayDataComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



//virtualUsage M3执行自然日【循环开始】  23531
      //ModelCode: circulationCollections
        for (AnalyzeNaturalDayDataDto circulationCollectionsRes: implementAnalyzeNaturalDayDataComRespDto.getAnalyzeNaturalDayDataList()){

//virtualUsage 3-4-04查询标准工作日周期ID是否存在  23541
      OmsCycle omsCycle = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq.setCycleTypeCode("DAY");//CUSTOM_CONVENTION//sourceId:482933_1_23541
queryTimeEqualQueryCycleDetailsDetailReq.setIsHoliday("FALSE");//sourceId:1115508_1_23541
queryTimeEqualQueryCycleDetailsDetailReq.setCycleTypeStandard("STANDARD");//sourceId:482934_1_23541
queryTimeEqualQueryCycleDetailsDetailReq.setPlatformData("TRUE");//sourceId:482935_1_23541
queryTimeEqualQueryCycleDetailsDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:482936_1_23541
if(circulationCollectionsRes!=null){
      queryTimeEqualQueryCycleDetailsDetailReq.setCycleStartTime(circulationCollectionsRes.getComTimeField1());//SimpleFieldAssign//sourceId:482931_1_23541
queryTimeEqualQueryCycleDetailsDetailReq.setCycleEndTime(circulationCollectionsRes.getComTimeField2());//SimpleFieldAssign//sourceId:482932_1_23541
    }

    /*3-4-04查询标准工作日周期ID是否存在[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleStartTime(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准工作日周期ID是否存在-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleEndTime(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准工作日周期ID是否存在-周期结束时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleTypeCode(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准工作日周期ID是否存在-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getIsHoliday(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准工作日周期ID是否存在-是否节假日不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleTypeStandard(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准工作日周期ID是否存在-冗余周期类型标准化不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getPlatformData(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准工作日周期ID是否存在-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getSubjectLifeCycle(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准工作日周期ID是否存在-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq)/*vcase invoke 本地 method 方法调用;*/;



//virtualUsage 3-4-04查询标准节假日周期ID是否存在  23542
      OmsCycle omsCycle_2 = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq_1=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleTypeCode("DAY");//CUSTOM_CONVENTION//sourceId:482940_1_23542
queryTimeEqualQueryCycleDetailsDetailReq_1.setIsHoliday("TRUE");//sourceId:1115509_1_23542
queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleTypeStandard("STANDARD");//sourceId:482941_1_23542
queryTimeEqualQueryCycleDetailsDetailReq_1.setPlatformData("TRUE");//sourceId:482942_1_23542
queryTimeEqualQueryCycleDetailsDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:482943_1_23542
if(circulationCollectionsRes!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleStartTime(circulationCollectionsRes.getComTimeField1());//SimpleFieldAssign//sourceId:482938_1_23542
queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleEndTime(circulationCollectionsRes.getComTimeField2());//SimpleFieldAssign//sourceId:482939_1_23542
    }

    /*3-4-04查询标准节假日周期ID是否存在[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleStartTime(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准节假日周期ID是否存在-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleEndTime(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准节假日周期ID是否存在-周期结束时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleTypeCode(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准节假日周期ID是否存在-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getIsHoliday(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准节假日周期ID是否存在-是否节假日不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleTypeStandard(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准节假日周期ID是否存在-冗余周期类型标准化不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getPlatformData(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准节假日周期ID是否存在-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getSubjectLifeCycle(),"D3自动生成标准工作与节假日(公共)-3-4-04查询标准节假日周期ID是否存在-主体生命周期不能为空",false);
      omsCycle_2 = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;



//virtualUsage 3-4-01查周期类型详情  23553
      OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setCycleTypeCode("DAY");//CUSTOM_CONVENTION//sourceId:483283_1_23553
queryCycleTypeDetailReq.setCycleTypeStandard("STANDARD");//sourceId:483289_1_23553
queryCycleTypeDetailReq.setCycleTypeUsage("WORK");//sourceId:483292_1_23553
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:483282_1_23553

    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeCode(),"D3自动生成标准工作与节假日(公共)-3-4-01查周期类型详情-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getCycleTypeStandard(),"D3自动生成标准工作与节假日(公共)-3-4-01查周期类型详情-周期类型标准化不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getCycleTypeUsage(),"D3自动生成标准工作与节假日(公共)-3-4-01查周期类型详情-周期类型用途不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3自动生成标准工作与节假日(公共)-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycleType== null||  omsCycleType.getCycleTypeCode() ==null||omsCycleType== null||  omsCycleType.getCycleTypeName() ==null,"找不到数据，系统异常",false);


//virtualUsage D2生成自然日名称(公共)  23554
      GenerateNameNaturalDayComRespDto generateNameNaturalDayComRespDto = null;
    GenerateNameNaturalDayComReqDto generateNameNaturalDayComReqDto=new GenerateNameNaturalDayComReqDto();
  generateNameNaturalDayComReqDto.setComNumField(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:483374_1_23554
if(circulationCollectionsRes!=null){
      generateNameNaturalDayComReqDto.setComTimeField(circulationCollectionsRes.getComTimeField1());//SimpleFieldAssign//sourceId:483373_1_23554
    }

    /*D2生成自然日名称(公共)[5382]   */
    Assert.isNull(generateNameNaturalDayComReqDto.getComTimeField(),"D3自动生成标准工作与节假日(公共)-D2生成自然日名称(公共)-通用时间字段不能为空",false);
Assert.isNull(generateNameNaturalDayComReqDto.getComNumField(),"D3自动生成标准工作与节假日(公共)-D2生成自然日名称(公共)-通用数值字段（整数型）不能为空",false);
      generateNameNaturalDayComRespDto = fwCompCycleTypeClient.generateNameNaturalDayCom(generateNameNaturalDayComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



if((reqDto!= null&&  reqDto.getCycleTypeUsage() !=null && reqDto.getCycleTypeUsage().equals("WORK"))) {
        //if(D3自动生成标准工作与节假日(公共).周期类型用途 等于 工作)  23526

if((omsCycle == null &&omsCycle_2 == null )) {
        //if((3-4-04查询标准工作日周期ID是否存在.出参 值等于空  and 3-4-04查询标准节假日周期ID是否存在.出参 值等于空 ))  23539

AddCycleComRespDto addCycleComRespDto = null;
    if(generateNameNaturalDayComRespDto !=null&&omsCycleType !=null){
          AddCycleComReqDto addCycleComReqDto=new AddCycleComReqDto();
  addCycleComReqDto.setCycleTypeStandard("STANDARD");//sourceId:482985_1_23540
addCycleComReqDto.setIsHoliday("FALSE");//sourceId:1115511_1_23540
addCycleComReqDto.setPlatformData("TRUE");//sourceId:482981_1_23540
addCycleComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:482979_1_23540
if(generateNameNaturalDayComRespDto!=null){
      addCycleComReqDto.setCycleStandardName(generateNameNaturalDayComRespDto.getCustomField());//SimpleFieldAssign//sourceId:482976_1_23540
    }
if(circulationCollectionsRes!=null){
      addCycleComReqDto.setCycleStartTime(circulationCollectionsRes.getComTimeField1());//SimpleFieldAssign//sourceId:482977_1_23540
addCycleComReqDto.setCycleEndTime(circulationCollectionsRes.getComTimeField2());//SimpleFieldAssign//sourceId:482978_1_23540
    }
if(omsCycleType!=null){
      addCycleComReqDto.setCycleTypeCode(omsCycleType.getCycleTypeCode());//SimpleFieldAssign//sourceId:482983_1_23540
      addCycleComReqDto.setCycleTypeName(omsCycleType.getCycleTypeName());//SimpleFieldAssign//sourceId:482984_1_23540
    }

    /*D3-4新增周期(标准工作日)[2006]   */
    Assert.isNull(addCycleComReqDto.getCycleStandardName(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准工作日)-周期名称不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleStartTime(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准工作日)-周期开始时间不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleEndTime(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准工作日)-周期结束时间不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeStandard(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准工作日)-冗余周期类型标准化不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeCode(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准工作日)-周期类型标识不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeName(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准工作日)-周期类型名称不能为空",false);
Assert.isNull(addCycleComReqDto.getIsHoliday(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准工作日)-是否节假日不能为空",false);
Assert.isNull(addCycleComReqDto.getPlatformData(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准工作日)-是否是平台不能为空",false);
Assert.isNull(addCycleComReqDto.getSubjectLifeCycle(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准工作日)-主体生命周期不能为空",false);
      addCycleComRespDto = addCycleCom(addCycleComReqDto)/*vcase invoke 同服务,同domain*/;



           }
      }
      }
else if((reqDto!= null&&  reqDto.getCycleTypeUsage() !=null && reqDto.getCycleTypeUsage().equals("DURING_HOLIDAY"))){
       //elseif(D3自动生成标准工作与节假日(公共).周期类型用途 等于 假期)  23528

if((omsCycle == null &&omsCycle_2 == null )) {
        //if((3-4-04查询标准工作日周期ID是否存在.出参 值等于空  and 3-4-04查询标准节假日周期ID是否存在.出参 值等于空 ))  23544

AddCycleComRespDto addCycleComRespDto_2 = null;
    if(generateNameNaturalDayComRespDto !=null&&omsCycleType !=null){
          AddCycleComReqDto addCycleComReqDto_1=new AddCycleComReqDto();
  addCycleComReqDto_1.setCycleTypeStandard("STANDARD");//sourceId:1115521_1_48366
addCycleComReqDto_1.setIsHoliday("TRUE");//sourceId:1115518_1_48366
addCycleComReqDto_1.setPlatformData("TRUE");//sourceId:1115517_1_48366
addCycleComReqDto_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1115515_1_48366
if(generateNameNaturalDayComRespDto!=null){
      addCycleComReqDto_1.setCycleStandardName(generateNameNaturalDayComRespDto.getCustomField());//SimpleFieldAssign//sourceId:1115512_1_48366
    }
if(circulationCollectionsRes!=null){
      addCycleComReqDto_1.setCycleStartTime(circulationCollectionsRes.getComTimeField1());//SimpleFieldAssign//sourceId:1115513_1_48366
addCycleComReqDto_1.setCycleEndTime(circulationCollectionsRes.getComTimeField2());//SimpleFieldAssign//sourceId:1115514_1_48366
    }
if(omsCycleType!=null){
      addCycleComReqDto_1.setCycleTypeCode(omsCycleType.getCycleTypeCode());//SimpleFieldAssign//sourceId:1115519_1_48366
      addCycleComReqDto_1.setCycleTypeName(omsCycleType.getCycleTypeName());//SimpleFieldAssign//sourceId:1115520_1_48366
    }

    /*D3-4新增周期(标准节假日)[2006]   */
    Assert.isNull(addCycleComReqDto_1.getCycleStandardName(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准节假日)-周期名称不能为空",false);
Assert.isNull(addCycleComReqDto_1.getCycleStartTime(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准节假日)-周期开始时间不能为空",false);
Assert.isNull(addCycleComReqDto_1.getCycleEndTime(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准节假日)-周期结束时间不能为空",false);
Assert.isNull(addCycleComReqDto_1.getCycleTypeStandard(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准节假日)-冗余周期类型标准化不能为空",false);
Assert.isNull(addCycleComReqDto_1.getCycleTypeCode(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准节假日)-周期类型标识不能为空",false);
Assert.isNull(addCycleComReqDto_1.getCycleTypeName(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准节假日)-周期类型名称不能为空",false);
Assert.isNull(addCycleComReqDto_1.getIsHoliday(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准节假日)-是否节假日不能为空",false);
Assert.isNull(addCycleComReqDto_1.getPlatformData(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准节假日)-是否是平台不能为空",false);
Assert.isNull(addCycleComReqDto_1.getSubjectLifeCycle(),"D3自动生成标准工作与节假日(公共)-D3-4新增周期(标准节假日)-主体生命周期不能为空",false);
      addCycleComRespDto_2 = addCycleCom(addCycleComReqDto_1)/*vcase invoke 同服务,同domain*/;



           }
      }
else if((omsCycle != null &&omsCycle_2 == null )){
       //elseif((3-4-04查询标准工作日周期ID是否存在（用于增365天之一）.出参 值不等于空  and 3-4-04查询标准节假日周期ID是否存在（比如用于增国庆节7天之一）.出参 值等于空 ))  23547

boolean bOOLEAN ;
    if(omsCycle !=null){
          OmsCycle omsCycle_4=new OmsCycle();
  omsCycle_4.setIsHoliday("TRUE");//sourceId:1115510_1_23551
if(omsCycle!=null){
      omsCycle_4.setCycleId(omsCycle.getCycleId());//SimpleFieldAssign//sourceId:482988_1_23551
    }

    /*3-4-04修改周期为节假日周期类型[2002]   */
    Assert.isNull(omsCycle_4.getCycleId(),"D3自动生成标准工作与节假日(公共)-3-4-04修改周期为节假日周期类型-周期ID不能为空",false);
Assert.isNull(omsCycle_4.getIsHoliday(),"D3自动生成标准工作与节假日(公共)-3-4-04修改周期为节假日周期类型-是否节假日不能为空",false);
      bOOLEAN = mOmsCycleService.updateCycle(omsCycle_4)/*vcase invoke 本地 method 方法调用;*/;



           }
    }
    }
else if((omsCycle != null &&omsCycle_2 != null )){
       //elseif((3-4-04查询标准工作日周期ID是否存在.出参 值不等于空  and 3-4-04查询标准节假日周期ID是否存在.出参 值不等于空 ))  23548

//异常结束 23549
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
//virtualUsage M3-执行【循环结束】  23534
      //ModelCode: circulationEnd
        }

AutoAenerateStandardWorkingDaysHolidaysComRespDto retData = new AutoAenerateStandardWorkingDaysHolidaysComRespDto();





return retData;
  }
/**
   * D3新增平台周期(公共)[5384]
   * gen by moon at 5/8/2024, 2:07:39 PM
   */
  @Trace(operationName = "D3新增平台周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddPlatformCycleComRespDto addPlatformCycleCom(AddPlatformCycleComReqDto reqDto){


      AddCycleComRespDto addCycleComRespDto_1 =null;
//virtualUsage 3-4-04查询新增周期是否已经存在  23570
      OmsCycle omsCycle = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq.setPlatformData("TRUE");//sourceId:483751_1_23570
queryTimeEqualQueryCycleDetailsDetailReq.setIsArchive("FALSE");//sourceId:483754_1_23570
if(reqDto!=null){
      queryTimeEqualQueryCycleDetailsDetailReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:483747_1_23570
queryTimeEqualQueryCycleDetailsDetailReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:483748_1_23570
queryTimeEqualQueryCycleDetailsDetailReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:483749_1_23570
    }

    /*3-4-04查询新增周期是否已经存在[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleStartTime(),"D3新增平台周期(公共)-3-4-04查询新增周期是否已经存在-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleEndTime(),"D3新增平台周期(公共)-3-4-04查询新增周期是否已经存在-周期结束时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleTypeCode(),"D3新增平台周期(公共)-3-4-04查询新增周期是否已经存在-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getPlatformData(),"D3新增平台周期(公共)-3-4-04查询新增周期是否已经存在-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getIsArchive(),"D3新增平台周期(公共)-3-4-04查询新增周期是否已经存在-是否存档不能为空",false);
      omsCycle = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq)/*vcase invoke 本地 method 方法调用;*/;



if((omsCycle != null )) {
        //if(3-4-04查询新增周期是否已经存在.出参 值不等于空 )  23571

//异常结束 23572
      throw new BizException("C00116","对不起！已存在~！",false);
      }
else{
       //else  23574

AddCycleComRespDto addCycleComRespDto = null;
    AddCycleComReqDto addCycleComReqDto=new AddCycleComReqDto();
  addCycleComReqDto.setPlatformData("TRUE");//sourceId:483739_1_23576
if(reqDto!=null){
      addCycleComReqDto.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:483734_1_23576
addCycleComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:483735_1_23576
addCycleComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:483736_1_23576
addCycleComReqDto.setCycleTypeStandard(reqDto.getCycleTypeStandard());//SimpleFieldAssign//sourceId:483743_1_23576
addCycleComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:483741_1_23576
addCycleComReqDto.setCycleTypeName(reqDto.getCycleTypeName());//SimpleFieldAssign//sourceId:483742_1_23576
addCycleComReqDto.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:483745_1_23576
addCycleComReqDto.setCycleNumberShortName(reqDto.getCycleNumberShortName());//SimpleFieldAssign//sourceId:483744_1_23576
addCycleComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:483737_1_23576
    }

    /*D3-4新增周期(公共)[2006]   */
    Assert.isNull(addCycleComReqDto.getCycleStandardName(),"D3新增平台周期(公共)-D3-4新增周期(公共)-周期名称不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleStartTime(),"D3新增平台周期(公共)-D3-4新增周期(公共)-周期开始时间不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleEndTime(),"D3新增平台周期(公共)-D3-4新增周期(公共)-周期结束时间不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeStandard(),"D3新增平台周期(公共)-D3-4新增周期(公共)-冗余周期类型标准化不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeCode(),"D3新增平台周期(公共)-D3-4新增周期(公共)-周期类型标识不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeName(),"D3新增平台周期(公共)-D3-4新增周期(公共)-周期类型名称不能为空",false);
Assert.isNull(addCycleComReqDto.getPlatformData(),"D3新增平台周期(公共)-D3-4新增周期(公共)-是否是平台不能为空",false);
Assert.isNull(addCycleComReqDto.getSubjectLifeCycle(),"D3新增平台周期(公共)-D3-4新增周期(公共)-主体生命周期不能为空",false);
      addCycleComRespDto = addCycleCom(addCycleComReqDto)/*vcase invoke 同服务,同domain*/;


      addCycleComRespDto_1 = addCycleComRespDto;
if((reqDto!= null&&  reqDto.getSubjectLifeCycle() !=null && reqDto.getSubjectLifeCycle().equals("CURRENTLY_VALID")&&reqDto!= null&&  reqDto.getCycleTypeCode() !=null && reqDto.getCycleTypeCode().equals("YEAR"))) {
        //if((D3新增平台周期(公共).主体生命周期 等于 当前有效 and D3新增平台周期(公共).周期类型标识 等于 年))  23577

AutoAenerateStandardWorkingDaysHolidaysComRespDto autoAenerateStandardWorkingDaysHolidaysComRespDto = null;
    AutoAenerateStandardWorkingDaysHolidaysComReqDto autoAenerateStandardWorkingDaysHolidaysComReqDto=new AutoAenerateStandardWorkingDaysHolidaysComReqDto();
autoAenerateStandardWorkingDaysHolidaysComReqDto.setCycleTypeUsage("WORK");//sourceId:483729_1_23587
if(reqDto!=null){
      autoAenerateStandardWorkingDaysHolidaysComReqDto.setComTimeField1(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:483725_1_23587
autoAenerateStandardWorkingDaysHolidaysComReqDto.setComTimeField2(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:483726_1_23587
    }

    /*D3自动生成标准工作日(公共)[5374]   */
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto.getCycleTypeUsage(),"D3新增平台周期(公共)-D3自动生成标准工作日(公共)-周期类型用途不能为空",false);
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto.getComTimeField1(),"D3新增平台周期(公共)-D3自动生成标准工作日(公共)-通用时间字段1不能为空",false);
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto.getComTimeField2(),"D3新增平台周期(公共)-D3自动生成标准工作日(公共)-通用时间字段2不能为空",false);
      autoAenerateStandardWorkingDaysHolidaysComRespDto = autoAenerateStandardWorkingDaysHolidaysCom(autoAenerateStandardWorkingDaysHolidaysComReqDto)/*vcase invoke 同服务,同domain*/;



      }
else{
       //else  23585

OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:483853_1_23588
if(reqDto!=null){
      queryCycleTypeDetailReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:483854_1_23588
    }

    /*3-4-01查新增平台周期的周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeCode(),"D3新增平台周期(公共)-3-4-01查新增平台周期的周期类型详情-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3新增平台周期(公共)-3-4-01查新增平台周期的周期类型详情-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycleType== null||  omsCycleType.getCycleTypeId() ==null,"找不到数据，系统异常",false);


if((omsCycleType!= null&&  omsCycleType.getCycleTypeStandard() !=null && omsCycleType.getCycleTypeStandard().equals("STANDARD")&&reqDto!= null&&  reqDto.getSubjectLifeCycle() !=null && reqDto.getSubjectLifeCycle().equals("CURRENTLY_VALID")&&omsCycleType!= null&&  omsCycleType.getCycleTypeUsage() !=null && omsCycleType.getCycleTypeUsage().equals("DURING_HOLIDAY"))) {
        //if((3-4-01查新增平台周期的周期类型详情.周期类型标准化 等于 普通标准 and D3新增平台周期(公共).主体生命周期 等于 当前有效 and 3-4-01查新增平台周期的周期类型详情.周期类型用途 等于 假期))  23589

AutoAenerateStandardWorkingDaysHolidaysComRespDto autoAenerateStandardWorkingDaysHolidaysComRespDto_1 = null;
    AutoAenerateStandardWorkingDaysHolidaysComReqDto autoAenerateStandardWorkingDaysHolidaysComReqDto_1=new AutoAenerateStandardWorkingDaysHolidaysComReqDto();
autoAenerateStandardWorkingDaysHolidaysComReqDto_1.setCycleTypeUsage("DURING_HOLIDAY");//sourceId:483898_1_23591
if(reqDto!=null){
      autoAenerateStandardWorkingDaysHolidaysComReqDto_1.setComTimeField1(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:483894_1_23591
autoAenerateStandardWorkingDaysHolidaysComReqDto_1.setComTimeField2(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:483895_1_23591
    }

    /*D3自动生成标准节假日(公共)[5374]   */
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto_1.getCycleTypeUsage(),"D3新增平台周期(公共)-D3自动生成标准节假日(公共)-周期类型用途不能为空",false);
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto_1.getComTimeField1(),"D3新增平台周期(公共)-D3自动生成标准节假日(公共)-通用时间字段1不能为空",false);
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto_1.getComTimeField2(),"D3新增平台周期(公共)-D3自动生成标准节假日(公共)-通用时间字段2不能为空",false);
      autoAenerateStandardWorkingDaysHolidaysComRespDto_1 = autoAenerateStandardWorkingDaysHolidaysCom(autoAenerateStandardWorkingDaysHolidaysComReqDto_1)/*vcase invoke 同服务,同domain*/;



      }
    }
    }
AddPlatformCycleComRespDto retData = new AddPlatformCycleComRespDto();
  if(addCycleComRespDto_1!=null){
      retData.setCycleId(addCycleComRespDto_1.getCycleId());//SimpleFieldAssign//sourceId:483996_1
    }




return retData;
  }
/**
   * D3自动生成自定义工作与节假日(公共)[5375]
   * gen by moon at 2/27/2023, 3:53:55 PM
   */
  @Trace(operationName = "D3自动生成自定义工作与节假日(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AutoAenerateCustomWorkingDaysHolidaysComRespDto autoAenerateCustomWorkingDaysHolidaysCom(AutoAenerateCustomWorkingDaysHolidaysComReqDto reqDto){


      //virtualUsage D2执行分析自然日数据集(公共)  23555
      ImplementAnalyzeNaturalDayDataComRespDto implementAnalyzeNaturalDayDataComRespDto = null;
    ImplementAnalyzeNaturalDayDataComReqDto implementAnalyzeNaturalDayDataComReqDto=new ImplementAnalyzeNaturalDayDataComReqDto();
  implementAnalyzeNaturalDayDataComReqDto.setTwoPointTimePeriodType("INCLUDE_BEGIN_AND_END_DAYS");//sourceId:488600_1_23555
  if(reqDto!=null){
      implementAnalyzeNaturalDayDataComReqDto.setComTimeField1(reqDto.getComTimeField1());//SimpleFieldAssign//sourceId:483384_1_23555
implementAnalyzeNaturalDayDataComReqDto.setComTimeField2(reqDto.getComTimeField2());//SimpleFieldAssign//sourceId:483385_1_23555
    }

    /*D2执行分析自然日数据集(公共)[5377]   */
    Assert.isNull(implementAnalyzeNaturalDayDataComReqDto.getComTimeField1(),"D3自动生成自定义工作与节假日(公共)-D2执行分析自然日数据集(公共)-通用时间字段1不能为空",false);
Assert.isNull(implementAnalyzeNaturalDayDataComReqDto.getComTimeField2(),"D3自动生成自定义工作与节假日(公共)-D2执行分析自然日数据集(公共)-通用时间字段2不能为空",false);
Assert.isNull(implementAnalyzeNaturalDayDataComReqDto.getTwoPointTimePeriodType(),"D3自动生成自定义工作与节假日(公共)-D2执行分析自然日数据集(公共)-两点时间段含头尾类型不能为空",false);
      implementAnalyzeNaturalDayDataComRespDto = fwCompInterfaceModeClient.implementAnalyzeNaturalDayDataCom(implementAnalyzeNaturalDayDataComReqDto).getData();



//virtualUsage M3执行自然日【循环开始】  23556
      //ModelCode: circulationCollections
        for (AnalyzeNaturalDayDataDto circulationCollectionsRes: implementAnalyzeNaturalDayDataComRespDto.getAnalyzeNaturalDayDataList()){

//virtualUsage 3-4-04查询自定义工作日周期ID是否存在  23558
      OmsCycle omsCycle = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq.setCycleTypeCode("CUSTOM_WEEKDAY");//CUSTOM_CONVENTION//sourceId:483439_1_23558
queryTimeEqualQueryCycleDetailsDetailReq.setCycleTypeStandard("IRREGULAR");//sourceId:483440_1_23558
queryTimeEqualQueryCycleDetailsDetailReq.setPlatformData("FALSE");//sourceId:483441_1_23558
queryTimeEqualQueryCycleDetailsDetailReq.setIsArchive("FALSE");//sourceId:483453_1_23558
if(circulationCollectionsRes!=null){
      queryTimeEqualQueryCycleDetailsDetailReq.setCycleStartTime(circulationCollectionsRes.getComTimeField1());//SimpleFieldAssign//sourceId:483437_1_23558
queryTimeEqualQueryCycleDetailsDetailReq.setCycleEndTime(circulationCollectionsRes.getComTimeField2());//SimpleFieldAssign//sourceId:483438_1_23558
    }

    /*3-4-04查询自定义工作日周期ID是否存在[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleStartTime(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义工作日周期ID是否存在-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleEndTime(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义工作日周期ID是否存在-周期结束时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleTypeCode(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义工作日周期ID是否存在-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleTypeStandard(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义工作日周期ID是否存在-冗余周期类型标准化不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getPlatformData(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义工作日周期ID是否存在-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getIsArchive(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义工作日周期ID是否存在-是否存档不能为空",false);
      omsCycle = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq);



//virtualUsage 3-4-04删除周期  23559
      boolean bOOLEAN ;
    if(omsCycle !=null){
          String string=new String();
  if(omsCycle!=null){
      string=omsCycle.getCycleId();;//SimpleFieldAssign//sourceId:483454_1_23559
    }

    /*3-4-04删除周期[2005]   */
    Assert.isNull(string,"D3自动生成自定义工作与节假日(公共)-3-4-04删除周期-周期ID不能为空",false);
      bOOLEAN = mOmsCycleService.deleteCycle(string);



           }
//virtualUsage 3-4-04查询自定义节假日周期ID是否存在  23560
      OmsCycle omsCycle_2 = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq_1=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleTypeCode("CUSTOM_HOLIDAY");//CUSTOM_CONVENTION//sourceId:483446_1_23560
queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleTypeStandard("IRREGULAR");//sourceId:483447_1_23560
queryTimeEqualQueryCycleDetailsDetailReq_1.setPlatformData("FALSE");//sourceId:483448_1_23560
queryTimeEqualQueryCycleDetailsDetailReq_1.setIsArchive("FALSE");//sourceId:483452_1_23560
if(circulationCollectionsRes!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleStartTime(circulationCollectionsRes.getComTimeField1());//SimpleFieldAssign//sourceId:483444_1_23560
queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleEndTime(circulationCollectionsRes.getComTimeField2());//SimpleFieldAssign//sourceId:483445_1_23560
    }

    /*3-4-04查询自定义节假日周期ID是否存在[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleStartTime(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义节假日周期ID是否存在-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleEndTime(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义节假日周期ID是否存在-周期结束时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleTypeCode(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义节假日周期ID是否存在-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleTypeStandard(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义节假日周期ID是否存在-冗余周期类型标准化不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getPlatformData(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义节假日周期ID是否存在-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getIsArchive(),"D3自动生成自定义工作与节假日(公共)-3-4-04查询自定义节假日周期ID是否存在-是否存档不能为空",false);
      omsCycle_2 = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq_1);



//virtualUsage 3-4-04删除周期  23561
      boolean bOOLEAN_1 ;
    if(omsCycle_2 !=null){
          String string_1=new String();
  if(omsCycle_2!=null){
      string_1=omsCycle_2.getCycleId();;//SimpleFieldAssign//sourceId:483454_1_23561
    }

    /*3-4-04删除周期[2005]   */
    Assert.isNull(string_1,"D3自动生成自定义工作与节假日(公共)-3-4-04删除周期-周期ID不能为空",false);
      bOOLEAN_1 = mOmsCycleService.deleteCycle(string_1);



           }
//virtualUsage 3-4-01查周期类型详情  23562
      OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:483419_1_23562
if(reqDto!=null){
      queryCycleTypeDetailReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:483420_1_23562
queryCycleTypeDetailReq.setCycleTypeStandard(reqDto.getCycleTypeStandard());//SimpleFieldAssign//sourceId:483421_1_23562
queryCycleTypeDetailReq.setCycleTypeUsage(reqDto.getCycleTypeUsage());//SimpleFieldAssign//sourceId:483426_1_23562
    }

    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeCode(),"D3自动生成自定义工作与节假日(公共)-3-4-01查周期类型详情-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getCycleTypeStandard(),"D3自动生成自定义工作与节假日(公共)-3-4-01查周期类型详情-周期类型标准化不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getCycleTypeUsage(),"D3自动生成自定义工作与节假日(公共)-3-4-01查周期类型详情-周期类型用途不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3自动生成自定义工作与节假日(公共)-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq);
      Assert.isTrue(omsCycleType== null||  omsCycleType.getCycleTypeName() ==null,"找不到数据，系统异常",false);


//virtualUsage D2生成自然日名称(公共)  23563
      GenerateNameNaturalDayComRespDto generateNameNaturalDayComRespDto = null;
    GenerateNameNaturalDayComReqDto generateNameNaturalDayComReqDto=new GenerateNameNaturalDayComReqDto();
  generateNameNaturalDayComReqDto.setComNumField(Long.valueOf(2));//CUSTOM_CONVENTION//sourceId:483428_1_23563
if(circulationCollectionsRes!=null){
      generateNameNaturalDayComReqDto.setComTimeField(circulationCollectionsRes.getComTimeField1());//SimpleFieldAssign//sourceId:483427_1_23563
    }

    /*D2生成自然日名称(公共)[5382]   */
    Assert.isNull(generateNameNaturalDayComReqDto.getComTimeField(),"D3自动生成自定义工作与节假日(公共)-D2生成自然日名称(公共)-通用时间字段不能为空",false);
Assert.isNull(generateNameNaturalDayComReqDto.getComNumField(),"D3自动生成自定义工作与节假日(公共)-D2生成自然日名称(公共)-通用数值字段（整数型）不能为空",false);
      generateNameNaturalDayComRespDto = fwCompCycleTypeClient.generateNameNaturalDayCom(generateNameNaturalDayComReqDto).getData();



//virtualUsage D3-4新增周期(公共)  23564
      AddCycleComRespDto addCycleComRespDto = null;
    if(generateNameNaturalDayComRespDto !=null&&omsCycleType !=null){
          AddCycleComReqDto addCycleComReqDto=new AddCycleComReqDto();
  addCycleComReqDto.setCycleTypeStandard("IRREGULAR");//sourceId:483400_1_23564
addCycleComReqDto.setPlatformData("FALSE");//sourceId:483396_1_23564
addCycleComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:483394_1_23564
if(generateNameNaturalDayComRespDto!=null){
      addCycleComReqDto.setCycleStandardName(generateNameNaturalDayComRespDto.getCustomField());//SimpleFieldAssign//sourceId:483391_1_23564
    }
if(circulationCollectionsRes!=null){
      addCycleComReqDto.setCycleStartTime(circulationCollectionsRes.getComTimeField1());//SimpleFieldAssign//sourceId:483392_1_23564
addCycleComReqDto.setCycleEndTime(circulationCollectionsRes.getComTimeField2());//SimpleFieldAssign//sourceId:483393_1_23564
    }
if(reqDto!=null){
      addCycleComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:483398_1_23564
    }
if(omsCycleType!=null){
      addCycleComReqDto.setCycleTypeName(omsCycleType.getCycleTypeName());//SimpleFieldAssign//sourceId:483399_1_23564
    }

    /*D3-4新增周期(公共)[2006]   */
    Assert.isNull(addCycleComReqDto.getCycleStandardName(),"D3自动生成自定义工作与节假日(公共)-D3-4新增周期(公共)-周期名称不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleStartTime(),"D3自动生成自定义工作与节假日(公共)-D3-4新增周期(公共)-周期开始时间不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleEndTime(),"D3自动生成自定义工作与节假日(公共)-D3-4新增周期(公共)-周期结束时间不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeStandard(),"D3自动生成自定义工作与节假日(公共)-D3-4新增周期(公共)-冗余周期类型标准化不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeCode(),"D3自动生成自定义工作与节假日(公共)-D3-4新增周期(公共)-周期类型标识不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeName(),"D3自动生成自定义工作与节假日(公共)-D3-4新增周期(公共)-周期类型名称不能为空",false);
Assert.isNull(addCycleComReqDto.getPlatformData(),"D3自动生成自定义工作与节假日(公共)-D3-4新增周期(公共)-是否是平台不能为空",false);
Assert.isNull(addCycleComReqDto.getSubjectLifeCycle(),"D3自动生成自定义工作与节假日(公共)-D3-4新增周期(公共)-主体生命周期不能为空",false);
      addCycleComRespDto = addCycleCom(addCycleComReqDto);



           }
//virtualUsage M3-执行【循环结束】  23557
      //ModelCode: circulationEnd
        }

AutoAenerateCustomWorkingDaysHolidaysComRespDto retData = new AutoAenerateCustomWorkingDaysHolidaysComRespDto();





return retData;
  }
/**
   * D3-4修改周期(公共)[2007]
   * gen by moon at 5/5/2024, 7:19:46 PM
   */
  @Trace(operationName = "D3-4修改周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdateCycleComRespDto updateCycleCom(UpdateCycleComReqDto reqDto){


      if((reqDto!= null&& reqDto.getCycleTypeCode() != null )) {
        //if(D3-4修改周期(公共).周期类型标识 值不等于空 )  25663

     OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:63419_1_25664
if(reqDto!=null){
      queryCycleTypeDetailReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:376551_1_25664
    }

    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3-4修改周期(公共)-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq)/*vcase invoke 本地 method 方法调用;*/;



boolean bOOLEAN ;
    if(omsCycleType !=null){
          OmsCycle omsCycle=new OmsCycle();
  if(reqDto!=null){
      omsCycle.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:59202_1_25671
omsCycle.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:59203_1_25671
omsCycle.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:59204_1_25671
omsCycle.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:59205_1_25671
omsCycle.setIsHoliday(reqDto.getIsHoliday());//SimpleFieldAssign//sourceId:70818_1_25671
omsCycle.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:59211_1_25671
    }
if(omsCycleType!=null){
      omsCycle.setCycleTypeCode(omsCycleType.getCycleTypeCode());//SimpleFieldAssign//sourceId:59206_1_25671
omsCycle.setCycleTypeName(omsCycleType.getCycleTypeName());//SimpleFieldAssign//sourceId:70817_1_25671
omsCycle.setCycleTypeStandard(omsCycleType.getCycleTypeStandard());//SimpleFieldAssign//sourceId:103362_1_25671
omsCycle.setCycleSystemCode(omsCycleType.getCycleSystemCode());//SimpleFieldAssign//sourceId:59208_1_25671
    }

    /*3-4-04修改周期[2002]   */
    Assert.isNull(omsCycle.getCycleId(),"D3-4修改周期(公共)-3-4-04修改周期-周期ID不能为空",false);
      bOOLEAN = mOmsCycleService.updateCycle(omsCycle)/*vcase invoke 本地 method 方法调用;*/;



           }
      }
if((reqDto!= null&& reqDto.getCycleTypeInstanceCode() != null )) {
        //if(D3-4修改周期(公共).周期类型实例标识 值不等于空 )  25666

     OmsCycleTypeInstance omsCycleTypeInstance = null;
    QueryCycleTypeInstanceDetailReq queryCycleTypeInstanceDetailReq=new QueryCycleTypeInstanceDetailReq();
  queryCycleTypeInstanceDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:63394_1_25667
if(reqDto!=null){
      queryCycleTypeInstanceDetailReq.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:63377_1_25667
    }

    /*3-4-03查周期类型实例详情[1894]   */
    Assert.isNull(queryCycleTypeInstanceDetailReq.getCycleTypeInstanceCode(),"D3-4修改周期(公共)-3-4-03查周期类型实例详情-周期类型实例标识不能为空",false);
    Assert.isNull(queryCycleTypeInstanceDetailReq.getSubjectLifeCycle(),"D3-4修改周期(公共)-3-4-03查周期类型实例详情-主体生命周期不能为空",false);
      omsCycleTypeInstance = mOmsCycleTypeInstanceService.queryCycleTypeInstanceDetail(queryCycleTypeInstanceDetailReq)/*vcase invoke 本地 method 方法调用;*/;



boolean bOOLEAN_1 ;
    if(omsCycleTypeInstance !=null){
          OmsCycle omsCycle_1=new OmsCycle();
  if(reqDto!=null){
      omsCycle_1.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:59202_1_25672
omsCycle_1.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:59203_1_25672
omsCycle_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:59204_1_25672
omsCycle_1.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:59205_1_25672
omsCycle_1.setIsHoliday(reqDto.getIsHoliday());//SimpleFieldAssign//sourceId:70818_1_25672
omsCycle_1.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:59207_1_25672
omsCycle_1.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:59211_1_25672
    }
if(omsCycleTypeInstance!=null){
      omsCycle_1.setCycleNumberShortName(omsCycleTypeInstance.getCycleNumberShortName());//SimpleFieldAssign//sourceId:70819_1_25672
    }

    /*3-4-04修改周期[2002]   */
    Assert.isNull(omsCycle_1.getCycleId(),"D3-4修改周期(公共)-3-4-04修改周期-周期ID不能为空",false);
      bOOLEAN_1 = mOmsCycleService.updateCycle(omsCycle_1)/*vcase invoke 本地 method 方法调用;*/;



           }
      }
if((reqDto!= null&& reqDto.getCycleStartTime() != null &&reqDto!= null&& reqDto.getCycleEndTime() != null )) {
        //if((D3-4修改周期(公共).周期开始时间 值不等于空  and D3-4修改周期(公共).周期结束时间 值不等于空 ))  25669

     //ModelCode: getDateTimeOrderNum
        Long  getDateTimeOrderNumRes=CommonFunctionHelper.getDateTimeOrderNum(reqDto.getCycleStartTime(),reqDto.getCycleEndTime());


boolean bOOLEAN_2 ;
    OmsCycle omsCycle_2=new OmsCycle();
  if(reqDto!=null){
      omsCycle_2.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:59202_1_25673
omsCycle_2.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:59203_1_25673
omsCycle_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:59204_1_25673
omsCycle_2.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:59205_1_25673
omsCycle_2.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:59206_1_25673
omsCycle_2.setIsHoliday(reqDto.getIsHoliday());//SimpleFieldAssign//sourceId:70818_1_25673
omsCycle_2.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:59207_1_25673
omsCycle_2.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:59211_1_25673
    }
if(getDateTimeOrderNumRes!=null){
      omsCycle_2.setOrderNumber(getDateTimeOrderNumRes!=null?Long.valueOf(getDateTimeOrderNumRes):null);//SimpleFieldAssign//sourceId:70823_1_25673
    }

    /*3-4-04修改周期[2002]   */
    Assert.isNull(omsCycle_2.getCycleId(),"D3-4修改周期(公共)-3-4-04修改周期-周期ID不能为空",false);
      bOOLEAN_2 = mOmsCycleService.updateCycle(omsCycle_2)/*vcase invoke 本地 method 方法调用;*/;



           }

UpdateCycleComRespDto retData = new UpdateCycleComRespDto();





return retData;
  }
/**
   * D3新增租户周期(公共)[5385]
   * gen by moon at 5/16/2023, 12:29:10 AM
   */
  @Trace(operationName = "D3新增租户周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddSpaceCycleComRespDto addSpaceCycleCom(AddSpaceCycleComReqDto reqDto){


      AddCycleComRespDto addCycleComRespDto_1 =null;
//virtualUsage 3-4-04查询新增周期是否已经存在  23743
      OmsCycle omsCycle = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq=new QueryTimeEqualQueryCycleDetailsDetailReq();
queryTimeEqualQueryCycleDetailsDetailReq.setPlatformData("FALSE");//sourceId:487230_1_23743
queryTimeEqualQueryCycleDetailsDetailReq.setIsArchive("FALSE");//sourceId:487233_1_23743
queryTimeEqualQueryCycleDetailsDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:487238_1_23743
if(reqDto!=null){
      queryTimeEqualQueryCycleDetailsDetailReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:487226_1_23743
queryTimeEqualQueryCycleDetailsDetailReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:487227_1_23743
queryTimeEqualQueryCycleDetailsDetailReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:487228_1_23743
    }

    /*3-4-04查询新增周期是否已经存在[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleStartTime(),"D3新增租户周期(公共)-3-4-04查询新增周期是否已经存在-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleEndTime(),"D3新增租户周期(公共)-3-4-04查询新增周期是否已经存在-周期结束时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleTypeCode(),"D3新增租户周期(公共)-3-4-04查询新增周期是否已经存在-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getPlatformData(),"D3新增租户周期(公共)-3-4-04查询新增周期是否已经存在-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getIsArchive(),"D3新增租户周期(公共)-3-4-04查询新增周期是否已经存在-是否存档不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getSpaceId(),"D3新增租户周期(公共)-3-4-04查询新增周期是否已经存在-创建于空间ID不能为空",false);
      omsCycle = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq)/*vcase invoke 本地 method 方法调用;*/;



if((omsCycle != null )) {
        //if(3-4-04查询新增周期是否已经存在.出参 值不等于空 )  23744

//异常结束 23745
      throw new BizException("C00116","对不起！已存在~！",false);
      }
//virtualUsage 3-4-04查询同一区间的自定义工作日是否存在  23596
      OmsCycle omsCycle_2 = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq_1=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleTypeCode("CUSTOM_WEEKDAY");//CUSTOM_CONVENTION//sourceId:483919_1_23596
queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleTypeStandard("IRREGULAR");//sourceId:483920_1_23596
queryTimeEqualQueryCycleDetailsDetailReq_1.setPlatformData("FALSE");//sourceId:483921_1_23596
queryTimeEqualQueryCycleDetailsDetailReq_1.setIsArchive("FALSE");//sourceId:483924_1_23596
if(reqDto!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:483917_1_23596
queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:483918_1_23596
    }

    /*3-4-04查询同一区间的自定义工作日是否存在[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleStartTime(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义工作日是否存在-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleEndTime(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义工作日是否存在-周期结束时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleTypeCode(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义工作日是否存在-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleTypeStandard(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义工作日是否存在-冗余周期类型标准化不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getPlatformData(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义工作日是否存在-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getIsArchive(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义工作日是否存在-是否存档不能为空",false);
      omsCycle_2 = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;



//virtualUsage 3-4-04查询同一区间的自定义节假日是否存在  23597
      OmsCycle omsCycle_4 = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq_2=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq_2.setCycleTypeCode("CUSTOM_HOLIDAY");//CUSTOM_CONVENTION//sourceId:483927_1_23597
queryTimeEqualQueryCycleDetailsDetailReq_2.setCycleTypeStandard("IRREGULAR");//sourceId:483928_1_23597
queryTimeEqualQueryCycleDetailsDetailReq_2.setPlatformData("FALSE");//sourceId:483929_1_23597
queryTimeEqualQueryCycleDetailsDetailReq_2.setIsArchive("FALSE");//sourceId:483932_1_23597
if(reqDto!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_2.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:483925_1_23597
queryTimeEqualQueryCycleDetailsDetailReq_2.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:483926_1_23597
    }

    /*3-4-04查询同一区间的自定义节假日是否存在[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getCycleStartTime(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义节假日是否存在-周期开始时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getCycleEndTime(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义节假日是否存在-周期结束时间不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getCycleTypeCode(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义节假日是否存在-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getCycleTypeStandard(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义节假日是否存在-冗余周期类型标准化不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getPlatformData(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义节假日是否存在-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getIsArchive(),"D3新增租户周期(公共)-3-4-04查询同一区间的自定义节假日是否存在-是否存档不能为空",false);
      omsCycle_4 = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq_2)/*vcase invoke 本地 method 方法调用;*/;



if((omsCycle_2 != null )) {
        //if(3-4-04查询同一区间的自定义工作日是否存在.出参 值不等于空 )  23598

//异常结束 23600
      throw new BizException("220100156","对不起，不能新增！因为已经存在自定义工作日~。",false);
      }
else if((omsCycle_4 != null )){
       //elseif(3-4-04查询同一区间的自定义节假日是否存在.出参 值不等于空 )  23599

//异常结束 23601
      throw new BizException("220100157","对不起，不能新增！因为已经存在自定义节假日~。",false);
    }
//virtualUsage D3获取周期类型(公共)  41792
      ObtainCycleTypeComRespDto obtainCycleTypeComRespDto = null;
    ObtainCycleTypeComReqDto obtainCycleTypeComReqDto=new ObtainCycleTypeComReqDto();
  if(reqDto!=null){
      obtainCycleTypeComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:946206_1_41792
    }

    /*D3获取周期类型(公共)[6706]   */
    Assert.isNull(obtainCycleTypeComReqDto.getCycleTypeCode(),"D3新增租户周期(公共)-D3获取周期类型(公共)-周期类型标识不能为空",false);
      obtainCycleTypeComRespDto = obtainCycleTypeCom(obtainCycleTypeComReqDto)/*vcase invoke 同服务,同domain*/;



//virtualUsage D3-4新增周期(公共)  23602
      AddCycleComRespDto addCycleComRespDto = null;
    if(obtainCycleTypeComRespDto !=null){
    AddCycleComReqDto addCycleComReqDto=new AddCycleComReqDto();
addCycleComReqDto.setPlatformData("FALSE");//sourceId:483910_1_23602
if(reqDto!=null){
      addCycleComReqDto.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:483905_1_23602
addCycleComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:483906_1_23602
addCycleComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:483907_1_23602
addCycleComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:483912_1_23602
addCycleComReqDto.setCycleTypeName(reqDto.getCycleTypeName());//SimpleFieldAssign//sourceId:483913_1_23602
addCycleComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:483908_1_23602
    }
if(obtainCycleTypeComRespDto!=null){
      addCycleComReqDto.setCycleTypeStandard(obtainCycleTypeComRespDto.getCycleTypeStandard());//SimpleFieldAssign//sourceId:483914_1_23602
    }

    /*D3-4新增周期(公共)[2006]   */
    Assert.isNull(addCycleComReqDto.getCycleStandardName(),"D3新增租户周期(公共)-D3-4新增周期(公共)-周期名称不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleStartTime(),"D3新增租户周期(公共)-D3-4新增周期(公共)-周期开始时间不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleEndTime(),"D3新增租户周期(公共)-D3-4新增周期(公共)-周期结束时间不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeCode(),"D3新增租户周期(公共)-D3-4新增周期(公共)-周期类型标识不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeName(),"D3新增租户周期(公共)-D3-4新增周期(公共)-周期类型名称不能为空",false);
Assert.isNull(addCycleComReqDto.getCycleTypeStandard(),"D3新增租户周期(公共)-D3-4新增周期(公共)-冗余周期类型标准化不能为空",false);
Assert.isNull(addCycleComReqDto.getPlatformData(),"D3新增租户周期(公共)-D3-4新增周期(公共)-是否是平台不能为空",false);
Assert.isNull(addCycleComReqDto.getSubjectLifeCycle(),"D3新增租户周期(公共)-D3-4新增周期(公共)-主体生命周期不能为空",false);
      addCycleComRespDto = addCycleCom(addCycleComReqDto)/*vcase invoke 同服务,同domain*/;


      addCycleComRespDto_1 = addCycleComRespDto;
           }
if((reqDto!= null&&  reqDto.getCycleTypeCode() !=null && reqDto.getCycleTypeCode().equals("CUSTOM_WORK_CYCLE")&&reqDto!= null&&  reqDto.getSubjectLifeCycle() !=null && reqDto.getSubjectLifeCycle().equals("CURRENTLY_VALID"))) {
        //if((D3新增租户周期(公共).周期类型标识 等于 自定义工作周期 and D3新增租户周期(公共).主体生命周期 等于 当前有效))  23603

AutoAenerateCustomWorkingDaysHolidaysComRespDto autoAenerateCustomWorkingDaysHolidaysComRespDto = null;
    AutoAenerateCustomWorkingDaysHolidaysComReqDto autoAenerateCustomWorkingDaysHolidaysComReqDto=new AutoAenerateCustomWorkingDaysHolidaysComReqDto();
  autoAenerateCustomWorkingDaysHolidaysComReqDto.setCycleTypeCode("CUSTOM_WEEKDAY");//CUSTOM_CONVENTION//sourceId:483902_1_23605
autoAenerateCustomWorkingDaysHolidaysComReqDto.setCycleTypeStandard("IRREGULAR");//sourceId:483903_1_23605
autoAenerateCustomWorkingDaysHolidaysComReqDto.setCycleTypeUsage("WORK");//sourceId:483904_1_23605
if(reqDto!=null){
      autoAenerateCustomWorkingDaysHolidaysComReqDto.setComTimeField1(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:483900_1_23605
autoAenerateCustomWorkingDaysHolidaysComReqDto.setComTimeField2(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:483901_1_23605
    }

    /*D3自动生成自定义工作日(公共)[5375]   */
    Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto.getComTimeField1(),"D3新增租户周期(公共)-D3自动生成自定义工作日(公共)-通用时间字段1不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto.getComTimeField2(),"D3新增租户周期(公共)-D3自动生成自定义工作日(公共)-通用时间字段2不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto.getCycleTypeCode(),"D3新增租户周期(公共)-D3自动生成自定义工作日(公共)-周期类型标识不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto.getCycleTypeStandard(),"D3新增租户周期(公共)-D3自动生成自定义工作日(公共)-周期类型标准化不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto.getCycleTypeUsage(),"D3新增租户周期(公共)-D3自动生成自定义工作日(公共)-周期类型用途不能为空",false);
      autoAenerateCustomWorkingDaysHolidaysComRespDto = autoAenerateCustomWorkingDaysHolidaysCom(autoAenerateCustomWorkingDaysHolidaysComReqDto)/*vcase invoke 同服务,同domain*/;



      }
else if((reqDto!= null&&  reqDto.getCycleTypeCode() !=null && reqDto.getCycleTypeCode().equals("CUSTOM_HOLIDAYS")&&reqDto!= null&&  reqDto.getSubjectLifeCycle() !=null && reqDto.getSubjectLifeCycle().equals("CURRENTLY_VALID"))){
       //elseif((D3新增租户周期(公共).周期类型标识 等于 自定义节假周期 and D3新增租户周期(公共).主体生命周期 等于 当前有效))  23604

AutoAenerateCustomWorkingDaysHolidaysComRespDto autoAenerateCustomWorkingDaysHolidaysComRespDto_1 = null;
    AutoAenerateCustomWorkingDaysHolidaysComReqDto autoAenerateCustomWorkingDaysHolidaysComReqDto_1=new AutoAenerateCustomWorkingDaysHolidaysComReqDto();
  autoAenerateCustomWorkingDaysHolidaysComReqDto_1.setCycleTypeCode("CUSTOM_HOLIDAY");//CUSTOM_CONVENTION//sourceId:483948_1_23606
autoAenerateCustomWorkingDaysHolidaysComReqDto_1.setCycleTypeStandard("IRREGULAR");//sourceId:483949_1_23606
autoAenerateCustomWorkingDaysHolidaysComReqDto_1.setCycleTypeUsage("DURING_HOLIDAY");//sourceId:483950_1_23606
if(reqDto!=null){
      autoAenerateCustomWorkingDaysHolidaysComReqDto_1.setComTimeField1(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:483946_1_23606
autoAenerateCustomWorkingDaysHolidaysComReqDto_1.setComTimeField2(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:483947_1_23606
    }

    /*D3自动生成自定义节假日(公共)[5375]   */
    Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto_1.getComTimeField1(),"D3新增租户周期(公共)-D3自动生成自定义节假日(公共)-通用时间字段1不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto_1.getComTimeField2(),"D3新增租户周期(公共)-D3自动生成自定义节假日(公共)-通用时间字段2不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto_1.getCycleTypeCode(),"D3新增租户周期(公共)-D3自动生成自定义节假日(公共)-周期类型标识不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto_1.getCycleTypeStandard(),"D3新增租户周期(公共)-D3自动生成自定义节假日(公共)-周期类型标准化不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto_1.getCycleTypeUsage(),"D3新增租户周期(公共)-D3自动生成自定义节假日(公共)-周期类型用途不能为空",false);
      autoAenerateCustomWorkingDaysHolidaysComRespDto_1 = autoAenerateCustomWorkingDaysHolidaysCom(autoAenerateCustomWorkingDaysHolidaysComReqDto_1)/*vcase invoke 同服务,同domain*/;



    }
AddSpaceCycleComRespDto retData = new AddSpaceCycleComRespDto();
  if(addCycleComRespDto_1!=null){
      retData.setCycleId(addCycleComRespDto_1.getCycleId());//SimpleFieldAssign//sourceId:483975_1
    }




return retData;
  }
/**
   * D3修改平台周期(公共)[5386]
   * gen by moon at 5/8/2024, 2:07:44 PM
   */
  @Trace(operationName = "D3修改平台周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdatePlatformCycleComRespDto updatePlatformCycleCom(UpdatePlatformCycleComReqDto reqDto){


      //virtualUsage 3-4-04查询周期ID的周期类型  23609
      OmsCycle omsCycle = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq.setSubjectLifeCycle("EDITING");//sourceId:484059_1_23609
if(reqDto!=null){
      queryTimeEqualQueryCycleDetailsDetailReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:484058_1_23609
    }

    /*3-4-04查询周期ID的周期类型[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleId(),"D3修改平台周期(公共)-3-4-04查询周期ID的周期类型-周期ID不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getSubjectLifeCycle(),"D3修改平台周期(公共)-3-4-04查询周期ID的周期类型-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycle== null||  omsCycle.getCycleId() ==null,"找不到数据，系统异常",false);


//virtualUsage D3-4修改周期(公共)  23607
      UpdateCycleComRespDto updateCycleComRespDto = null;
    UpdateCycleComReqDto updateCycleComReqDto=new UpdateCycleComReqDto();
  if(reqDto!=null){
      updateCycleComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:483999_1_23607
updateCycleComReqDto.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:484000_1_23607
updateCycleComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:484001_1_23607
updateCycleComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:484002_1_23607
updateCycleComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:484006_1_23607
updateCycleComReqDto.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:484003_1_23607
updateCycleComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:484004_1_23607
    }

    /*D3-4修改周期(公共)[2007]   */
    Assert.isNull(updateCycleComReqDto.getCycleId(),"D3修改平台周期(公共)-D3-4修改周期(公共)-周期ID不能为空",false);
      updateCycleComRespDto = updateCycleCom(updateCycleComReqDto)/*vcase invoke 同服务,同domain*/;



if((reqDto!= null&&  reqDto.getSubjectLifeCycle() !=null && reqDto.getSubjectLifeCycle().equals("CURRENTLY_VALID")&&omsCycle!= null&&  omsCycle.getCycleTypeCode() !=null && omsCycle.getCycleTypeCode().equals("YEAR"))) {
        //if((D3修改平台周期(公共).主体生命周期 等于 当前有效 and 3-4-04查询周期ID的周期类型（用于校验当前周期ID是否正在编辑）.周期类型标识 等于 年))  23608

OmsCycle omsCycle_2 = null;
    if(omsCycle !=null){
          QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq_1=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:484152_1_23639
if(omsCycle!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleId(omsCycle.getCycleId());//SimpleFieldAssign//sourceId:484145_1_23639
queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleTypeCode(omsCycle.getCycleTypeCode());//SimpleFieldAssign//sourceId:484150_1_23639
    }

    /*3-4-04查询刚修改的周期信息[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleId(),"D3修改平台周期(公共)-3-4-04查询刚修改的周期信息-周期ID不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleTypeCode(),"D3修改平台周期(公共)-3-4-04查询刚修改的周期信息-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getSubjectLifeCycle(),"D3修改平台周期(公共)-3-4-04查询刚修改的周期信息-主体生命周期不能为空",false);
      omsCycle_2 = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycle_2== null||  omsCycle_2.getCycleId() ==null,"找不到数据，系统异常",false);


           }
AutoAenerateStandardWorkingDaysHolidaysComRespDto autoAenerateStandardWorkingDaysHolidaysComRespDto = null;
    if(omsCycle_2 !=null){
          AutoAenerateStandardWorkingDaysHolidaysComReqDto autoAenerateStandardWorkingDaysHolidaysComReqDto=new AutoAenerateStandardWorkingDaysHolidaysComReqDto();
autoAenerateStandardWorkingDaysHolidaysComReqDto.setCycleTypeUsage("WORK");//sourceId:484035_1_23637
if(omsCycle_2!=null){
      autoAenerateStandardWorkingDaysHolidaysComReqDto.setComTimeField1(omsCycle_2.getCycleStartTime());//SimpleFieldAssign//sourceId:484031_1_23637
autoAenerateStandardWorkingDaysHolidaysComReqDto.setComTimeField2(omsCycle_2.getCycleEndTime());//SimpleFieldAssign//sourceId:484032_1_23637
    }

    /*D3自动生成标准工作日(公共)[5374]   */
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto.getCycleTypeUsage(),"D3修改平台周期(公共)-D3自动生成标准工作日(公共)-周期类型用途不能为空",false);
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto.getComTimeField1(),"D3修改平台周期(公共)-D3自动生成标准工作日(公共)-通用时间字段1不能为空",false);
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto.getComTimeField2(),"D3修改平台周期(公共)-D3自动生成标准工作日(公共)-通用时间字段2不能为空",false);
      autoAenerateStandardWorkingDaysHolidaysComRespDto = autoAenerateStandardWorkingDaysHolidaysCom(autoAenerateStandardWorkingDaysHolidaysComReqDto)/*vcase invoke 同服务,同domain*/;



           }
      }
else if((reqDto!= null&&  reqDto.getSubjectLifeCycle() !=null && reqDto.getSubjectLifeCycle().equals("CURRENTLY_VALID")&&!(omsCycle!= null&&  omsCycle.getCycleTypeCode() !=null && omsCycle.getCycleTypeCode().equals("YEAR")))){
       //elseif((D3修改平台周期(公共).主体生命周期 等于 当前有效 and 3-4-04查询周期ID的周期类型（用于校验当前周期ID是否正在编辑）.周期类型标识 不等于 年))  23611

OmsCycle omsCycle_4 = null;
    if(omsCycle !=null){
          QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq_2=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:484152_1_23640
if(omsCycle!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_2.setCycleId(omsCycle.getCycleId());//SimpleFieldAssign//sourceId:484145_1_23640
queryTimeEqualQueryCycleDetailsDetailReq_2.setCycleTypeCode(omsCycle.getCycleTypeCode());//SimpleFieldAssign//sourceId:484150_1_23640
    }

    /*3-4-04查询刚修改的周期信息[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getCycleId(),"D3修改平台周期(公共)-3-4-04查询刚修改的周期信息-周期ID不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getCycleTypeCode(),"D3修改平台周期(公共)-3-4-04查询刚修改的周期信息-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_2.getSubjectLifeCycle(),"D3修改平台周期(公共)-3-4-04查询刚修改的周期信息-主体生命周期不能为空",false);
      omsCycle_4 = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq_2)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycle_4== null||  omsCycle_4.getCycleId() ==null,"找不到数据，系统异常",false);


           }
OmsCycleType omsCycleType = null;
    if(omsCycle !=null){
          QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setCycleTypeStandard("STANDARD");//sourceId:1785221_1_23612
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:484023_1_23612
if(omsCycle!=null){
      queryCycleTypeDetailReq.setCycleTypeCode(omsCycle.getCycleTypeCode());//SimpleFieldAssign//sourceId:484024_1_23612
    }

    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeCode(),"D3修改平台周期(公共)-3-4-01查周期类型详情-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getCycleTypeStandard(),"D3修改平台周期(公共)-3-4-01查周期类型详情-周期类型标准化不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3修改平台周期(公共)-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycleType== null||  omsCycleType.getCycleTypeUsage() ==null,"找不到数据，系统异常",false);


           }
if((omsCycleType!= null&&  omsCycleType.getCycleTypeUsage() !=null && omsCycleType.getCycleTypeUsage().equals("DURING_HOLIDAY"))) {
        //if(3-4-01查周期类型详情（判断是否假期周期类型，用于生成标准节假日）.周期类型用途 等于 假期)  23613

AutoAenerateStandardWorkingDaysHolidaysComRespDto autoAenerateStandardWorkingDaysHolidaysComRespDto_1 = null;
    if(omsCycle_4 !=null){
          AutoAenerateStandardWorkingDaysHolidaysComReqDto autoAenerateStandardWorkingDaysHolidaysComReqDto_1=new AutoAenerateStandardWorkingDaysHolidaysComReqDto();
  autoAenerateStandardWorkingDaysHolidaysComReqDto_1.setCycleTypeUsage("DURING_HOLIDAY");//sourceId:1785213_1_23638
if(omsCycle_4!=null){
      autoAenerateStandardWorkingDaysHolidaysComReqDto_1.setComTimeField1(omsCycle_4.getCycleStartTime());//SimpleFieldAssign//sourceId:484036_1_23638
autoAenerateStandardWorkingDaysHolidaysComReqDto_1.setComTimeField2(omsCycle_4.getCycleEndTime());//SimpleFieldAssign//sourceId:484037_1_23638
    }

    /*D3自动生成标准节假日(公共)[5374]   */
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto_1.getCycleTypeUsage(),"D3修改平台周期(公共)-D3自动生成标准节假日(公共)-周期类型用途不能为空",false);
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto_1.getComTimeField1(),"D3修改平台周期(公共)-D3自动生成标准节假日(公共)-通用时间字段1不能为空",false);
Assert.isNull(autoAenerateStandardWorkingDaysHolidaysComReqDto_1.getComTimeField2(),"D3修改平台周期(公共)-D3自动生成标准节假日(公共)-通用时间字段2不能为空",false);
      autoAenerateStandardWorkingDaysHolidaysComRespDto_1 = autoAenerateStandardWorkingDaysHolidaysCom(autoAenerateStandardWorkingDaysHolidaysComReqDto_1)/*vcase invoke 同服务,同domain*/;



           }
      }
    }
UpdatePlatformCycleComRespDto retData = new UpdatePlatformCycleComRespDto();





return retData;
  }
/**
   * D3修改租户周期(公共)[5387]
   * gen by moon at 5/29/2023, 4:35:33 AM
   */
  @Trace(operationName = "D3修改租户周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public UpdateTenantCycleComRespDto updateTenantCycleCom(UpdateTenantCycleComReqDto reqDto){


      //virtualUsage 3-4-04查询时间周期生命周期状态是否正确  23633
      OmsCycle omsCycle = null;
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq=new QueryTimeEqualQueryCycleDetailsDetailReq();
//  queryTimeEqualQueryCycleDetailsDetailReq.setCycleTypeStandard("IRREGULAR");//sourceId:484127_1_23633
queryTimeEqualQueryCycleDetailsDetailReq.setPlatformData("FALSE");//sourceId:484117_1_23633
queryTimeEqualQueryCycleDetailsDetailReq.setSubjectLifeCycle("EDITING");//sourceId:484118_1_23633
queryTimeEqualQueryCycleDetailsDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:484126_1_23633
if(reqDto!=null){
      queryTimeEqualQueryCycleDetailsDetailReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:484121_1_23633
    }

    /*3-4-04查询时间周期生命周期状态是否正确[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleId(),"D3修改租户周期(公共)-3-4-04查询时间周期生命周期状态是否正确-周期ID不能为空",false);
//Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getCycleTypeStandard(),"D3修改租户周期(公共)-3-4-04查询时间周期生命周期状态是否正确-冗余周期类型标准化不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getPlatformData(),"D3修改租户周期(公共)-3-4-04查询时间周期生命周期状态是否正确-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getSubjectLifeCycle(),"D3修改租户周期(公共)-3-4-04查询时间周期生命周期状态是否正确-主体生命周期不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq.getSpaceId(),"D3修改租户周期(公共)-3-4-04查询时间周期生命周期状态是否正确-创建于空间ID不能为空",false);
      omsCycle = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycle== null||  omsCycle.getCycleId() ==null,"找不到数据，系统异常",false);


//virtualUsage D3-4修改周期(公共)  23636
      UpdateCycleComRespDto updateCycleComRespDto = null;
    UpdateCycleComReqDto updateCycleComReqDto=new UpdateCycleComReqDto();
  if(reqDto!=null){
      updateCycleComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:484085_1_23636
updateCycleComReqDto.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:484086_1_23636
updateCycleComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:484087_1_23636
updateCycleComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:484088_1_23636
updateCycleComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:484092_1_23636
updateCycleComReqDto.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:484089_1_23636
updateCycleComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:484090_1_23636
    }

    /*D3-4修改周期(公共)[2007]   */
    Assert.isNull(updateCycleComReqDto.getCycleId(),"D3修改租户周期(公共)-D3-4修改周期(公共)-周期ID不能为空",false);
      updateCycleComRespDto = updateCycleCom(updateCycleComReqDto)/*vcase invoke 同服务,同domain*/;



if((reqDto!= null&&  reqDto.getSubjectLifeCycle() !=null && reqDto.getSubjectLifeCycle().equals("CURRENTLY_VALID"))) {
        //if(D3修改租户周期(公共).主体生命周期 等于 当前有效)  23641

OmsCycle omsCycle_2 = null;
    if(omsCycle !=null){
    QueryTimeEqualQueryCycleDetailsDetailReq queryTimeEqualQueryCycleDetailsDetailReq_1=new QueryTimeEqualQueryCycleDetailsDetailReq();
  queryTimeEqualQueryCycleDetailsDetailReq_1.setPlatformData("FALSE");//sourceId:484157_1_23642
queryTimeEqualQueryCycleDetailsDetailReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:484166_1_23642
queryTimeEqualQueryCycleDetailsDetailReq_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:484167_1_23642
if(omsCycle!=null){
      queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleId(omsCycle.getCycleId());//SimpleFieldAssign//sourceId:484161_1_23642
queryTimeEqualQueryCycleDetailsDetailReq_1.setCycleTypeCode(omsCycle.getCycleTypeCode());//SimpleFieldAssign//sourceId:484155_1_23642
    }

    /*3-4-04查询刚修改的周期信息[5379]   */
    Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleId(),"D3修改租户周期(公共)-3-4-04查询刚修改的周期信息-周期ID不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getCycleTypeCode(),"D3修改租户周期(公共)-3-4-04查询刚修改的周期信息-周期类型标识不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getPlatformData(),"D3修改租户周期(公共)-3-4-04查询刚修改的周期信息-是否是平台不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getSubjectLifeCycle(),"D3修改租户周期(公共)-3-4-04查询刚修改的周期信息-主体生命周期不能为空",false);
Assert.isNull(queryTimeEqualQueryCycleDetailsDetailReq_1.getSpaceId(),"D3修改租户周期(公共)-3-4-04查询刚修改的周期信息-创建于空间ID不能为空",false);
      omsCycle_2 = mOmsCycleService.queryTimeEqualQueryCycleDetailsDetail(queryTimeEqualQueryCycleDetailsDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycle_2== null||  omsCycle_2.getCycleId() ==null,"找不到数据，系统异常",false);


           }
if((omsCycle!= null&&  omsCycle.getCycleTypeCode() !=null && omsCycle.getCycleTypeCode().equals("CUSTOM_WORK_CYCLE"))) {
        //if(3-4-04查询时间周期生命周期状态是否正确.周期类型标识 等于 自定义工作周期)  23643

AutoAenerateCustomWorkingDaysHolidaysComRespDto autoAenerateCustomWorkingDaysHolidaysComRespDto = null;
    if(omsCycle_2 !=null){
          AutoAenerateCustomWorkingDaysHolidaysComReqDto autoAenerateCustomWorkingDaysHolidaysComReqDto=new AutoAenerateCustomWorkingDaysHolidaysComReqDto();
  autoAenerateCustomWorkingDaysHolidaysComReqDto.setCycleTypeCode("CUSTOM_WEEKDAY");//CUSTOM_CONVENTION//sourceId:484095_1_23645
autoAenerateCustomWorkingDaysHolidaysComReqDto.setCycleTypeStandard("IRREGULAR");//sourceId:484096_1_23645
autoAenerateCustomWorkingDaysHolidaysComReqDto.setCycleTypeUsage("WORK");//sourceId:484097_1_23645
if(omsCycle_2!=null){
      autoAenerateCustomWorkingDaysHolidaysComReqDto.setComTimeField1(omsCycle_2.getCycleStartTime());//SimpleFieldAssign//sourceId:484093_1_23645
autoAenerateCustomWorkingDaysHolidaysComReqDto.setComTimeField2(omsCycle_2.getCycleEndTime());//SimpleFieldAssign//sourceId:484094_1_23645
    }

    /*D3自动生成自定义工作日(公共)[5375]   */
    Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto.getComTimeField1(),"D3修改租户周期(公共)-D3自动生成自定义工作日(公共)-通用时间字段1不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto.getComTimeField2(),"D3修改租户周期(公共)-D3自动生成自定义工作日(公共)-通用时间字段2不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto.getCycleTypeCode(),"D3修改租户周期(公共)-D3自动生成自定义工作日(公共)-周期类型标识不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto.getCycleTypeStandard(),"D3修改租户周期(公共)-D3自动生成自定义工作日(公共)-周期类型标准化不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto.getCycleTypeUsage(),"D3修改租户周期(公共)-D3自动生成自定义工作日(公共)-周期类型用途不能为空",false);
      autoAenerateCustomWorkingDaysHolidaysComRespDto = autoAenerateCustomWorkingDaysHolidaysCom(autoAenerateCustomWorkingDaysHolidaysComReqDto)/*vcase invoke 同服务,同domain*/;



           }
      }
else if((omsCycle!= null&&  omsCycle.getCycleTypeCode() !=null && omsCycle.getCycleTypeCode().equals("CUSTOM_HOLIDAYS"))){
       //elseif(3-4-04查询时间周期生命周期状态是否正确.周期类型标识 等于 自定义节假周期)  23644

AutoAenerateCustomWorkingDaysHolidaysComRespDto autoAenerateCustomWorkingDaysHolidaysComRespDto_1 = null;
    if(omsCycle_2 !=null){
          AutoAenerateCustomWorkingDaysHolidaysComReqDto autoAenerateCustomWorkingDaysHolidaysComReqDto_1=new AutoAenerateCustomWorkingDaysHolidaysComReqDto();
  autoAenerateCustomWorkingDaysHolidaysComReqDto_1.setCycleTypeCode("CUSTOM_HOLIDAY");//CUSTOM_CONVENTION//sourceId:484100_1_23646
autoAenerateCustomWorkingDaysHolidaysComReqDto_1.setCycleTypeStandard("IRREGULAR");//sourceId:484101_1_23646
autoAenerateCustomWorkingDaysHolidaysComReqDto_1.setCycleTypeUsage("DURING_HOLIDAY");//sourceId:484102_1_23646
if(omsCycle_2!=null){
      autoAenerateCustomWorkingDaysHolidaysComReqDto_1.setComTimeField1(omsCycle_2.getCycleStartTime());//SimpleFieldAssign//sourceId:484098_1_23646
autoAenerateCustomWorkingDaysHolidaysComReqDto_1.setComTimeField2(omsCycle_2.getCycleEndTime());//SimpleFieldAssign//sourceId:484099_1_23646
    }

    /*D3自动生成自定义节假日(公共)[5375]   */
    Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto_1.getComTimeField1(),"D3修改租户周期(公共)-D3自动生成自定义节假日(公共)-通用时间字段1不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto_1.getComTimeField2(),"D3修改租户周期(公共)-D3自动生成自定义节假日(公共)-通用时间字段2不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto_1.getCycleTypeCode(),"D3修改租户周期(公共)-D3自动生成自定义节假日(公共)-周期类型标识不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto_1.getCycleTypeStandard(),"D3修改租户周期(公共)-D3自动生成自定义节假日(公共)-周期类型标准化不能为空",false);
Assert.isNull(autoAenerateCustomWorkingDaysHolidaysComReqDto_1.getCycleTypeUsage(),"D3修改租户周期(公共)-D3自动生成自定义节假日(公共)-周期类型用途不能为空",false);
      autoAenerateCustomWorkingDaysHolidaysComRespDto_1 = autoAenerateCustomWorkingDaysHolidaysCom(autoAenerateCustomWorkingDaysHolidaysComReqDto_1)/*vcase invoke 同服务,同domain*/;



           }
    }
      }
UpdateTenantCycleComRespDto retData = new UpdateTenantCycleComRespDto();





return retData;
  }
/**
   * D3删除平台周期[5388]
   * gen by moon at 5/5/2024, 7:19:51 PM
   */
  @Trace(operationName = "D3删除平台周期")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public DeletePlatformCycleRespDto deletePlatformCycle(DeletePlatformCycleReqDto reqDto){


      //virtualUsage 3-4-04查询周期详情  23661
      OmsCycle omsCycle = null;
    QueryCycleDetailReq queryCycleDetailReq=new QueryCycleDetailReq();
  queryCycleDetailReq.setSubjectLifeCycle("EDITING");//sourceId:484310_1_23661
if(reqDto!=null){
      queryCycleDetailReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:484309_1_23661
    }

    /*3-4-04查询周期详情[2004]   */
    Assert.isNull(queryCycleDetailReq.getCycleId(),"D3删除平台周期-3-4-04查询周期详情-周期ID不能为空",false);
Assert.isNull(queryCycleDetailReq.getSubjectLifeCycle(),"D3删除平台周期-3-4-04查询周期详情-主体生命周期不能为空",false);
      omsCycle = mOmsCycleService.queryCycleDetail(queryCycleDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycle== null||  omsCycle.getCycleId() ==null,"找不到数据，系统异常",false);


if((omsCycle != null )) {
        //if(3-4-04查询周期详情.出参 值不等于空 )  23662

boolean bOOLEAN ;
    if(omsCycle !=null){
          String string=new String();
  if(omsCycle!=null){
      string=omsCycle.getCycleId();;//SimpleFieldAssign//sourceId:484365_1_23663
    }

    /*3-4-04删除周期[2005]   */
    Assert.isNull(string,"D3删除平台周期-3-4-04删除周期-周期ID不能为空",false);
      bOOLEAN = mOmsCycleService.deleteCycle(string)/*vcase invoke 本地 method 方法调用;*/;



           }
OmsCycleType omsCycleType = null;
    if(omsCycle !=null){
          QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:484402_1_23664
if(omsCycle!=null){
      queryCycleTypeDetailReq.setCycleTypeCode(omsCycle.getCycleTypeCode());//SimpleFieldAssign//sourceId:484403_1_23664
    }

    /*3-4-01查周期类型详情[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeCode(),"D3删除平台周期-3-4-01查周期类型详情-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3删除平台周期-3-4-01查周期类型详情-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq)/*vcase invoke 本地 method 方法调用;*/;
      Assert.isTrue(omsCycleType== null||  omsCycleType.getCycleTypeId() ==null,"找不到数据，系统异常",false);


           }
if((omsCycle!= null&&  omsCycle.getCycleTypeCode() !=null && omsCycle.getCycleTypeCode().equals("YEAR"))) {
        //if(3-4-04查询周期详情.周期类型标识 等于 年)  23665

List<OmsCycle> listOmsCycle =new ArrayList<>();
    if(omsCycle !=null){
          QueryCycleWithinCycleListReq queryCycleWithinCycleListReq=new QueryCycleWithinCycleListReq();
  queryCycleWithinCycleListReq.setCycleTypeCode("DAY");//CUSTOM_CONVENTION//sourceId:484371_1_23666
queryCycleWithinCycleListReq.setCycleTypeStandard("STANDARD");//sourceId:484375_1_23666
queryCycleWithinCycleListReq.setIsHoliday("FALSE");//sourceId:1782393_1_23666
queryCycleWithinCycleListReq.setPlatformData("TRUE");//sourceId:484376_1_23666
if(omsCycle!=null){
      queryCycleWithinCycleListReq.setCycleStartTime(omsCycle.getCycleStartTime());//SimpleFieldAssign//sourceId:484369_1_23666
queryCycleWithinCycleListReq.setCycleEndTime(omsCycle.getCycleEndTime());//SimpleFieldAssign//sourceId:484370_1_23666
    }

    /*3-4-04查询平台标准工作日周期列表[5341]   */
    Assert.isNull(queryCycleWithinCycleListReq.getCycleStartTime(),"D3删除平台周期-3-4-04查询平台标准工作日周期列表-周期开始时间不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq.getCycleEndTime(),"D3删除平台周期-3-4-04查询平台标准工作日周期列表-周期结束时间不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq.getCycleTypeCode(),"D3删除平台周期-3-4-04查询平台标准工作日周期列表-周期类型标识不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq.getCycleTypeStandard(),"D3删除平台周期-3-4-04查询平台标准工作日周期列表-冗余周期类型标准化不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq.getIsHoliday(),"D3删除平台周期-3-4-04查询平台标准工作日周期列表-是否节假日不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq.getPlatformData(),"D3删除平台周期-3-4-04查询平台标准工作日周期列表-是否是平台不能为空",false);
      listOmsCycle = mOmsCycleService.queryCycleWithinCycleList(queryCycleWithinCycleListReq)/*vcase invoke 本地 method 方法调用;*/;



           }
boolean bOOLEAN_1 ;
    if(listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)&& listOmsCycle.size()>0 ){
          List<String> listString=new ArrayList<>();
  if(listOmsCycle!= null&& !CollectionUtil.isEmpty(listOmsCycle)&&  listOmsCycle !=null&& !CollectionUtil.isEmpty(listOmsCycle)){
  listString = listOmsCycle.stream().map(item->item.getCycleId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:484385_1_23667
    }

    /*3-4-04批量删周期[5383]   */

      bOOLEAN_1 = mOmsCycleService.batchDeleteCycle(listString)/*vcase invoke 本地 method 方法调用;*/;



           }
      }
else if((omsCycleType!= null&&  omsCycleType.getCycleTypeStandard() !=null && omsCycleType.getCycleTypeStandard().equals("STANDARD")&&omsCycleType!= null&&  omsCycleType.getCycleTypeUsage() !=null && omsCycleType.getCycleTypeUsage().equals("DURING_HOLIDAY"))){
       //elseif((3-4-01查周期类型详情.周期类型标准化 等于 普通标准 and 3-4-01查周期类型详情.周期类型用途 等于 假期))  23668

List<OmsCycle> listOmsCycle_2 =new ArrayList<>();
    if(omsCycle !=null){
          QueryCycleWithinCycleListReq queryCycleWithinCycleListReq_1=new QueryCycleWithinCycleListReq();
  queryCycleWithinCycleListReq_1.setCycleTypeCode("DAY");//CUSTOM_CONVENTION//sourceId:484379_1_23669
queryCycleWithinCycleListReq_1.setCycleTypeStandard("STANDARD");//sourceId:484383_1_23669
queryCycleWithinCycleListReq_1.setIsHoliday("TRUE");//sourceId:1782394_1_23669
queryCycleWithinCycleListReq_1.setPlatformData("TRUE");//sourceId:484384_1_23669
if(omsCycle!=null){
      queryCycleWithinCycleListReq_1.setCycleStartTime(omsCycle.getCycleStartTime());//SimpleFieldAssign//sourceId:484377_1_23669
queryCycleWithinCycleListReq_1.setCycleEndTime(omsCycle.getCycleEndTime());//SimpleFieldAssign//sourceId:484378_1_23669
    }

    /*3-4-04查询平台标准节假日周期列表[5341]   */
    Assert.isNull(queryCycleWithinCycleListReq_1.getCycleStartTime(),"D3删除平台周期-3-4-04查询平台标准节假日周期列表-周期开始时间不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq_1.getCycleEndTime(),"D3删除平台周期-3-4-04查询平台标准节假日周期列表-周期结束时间不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq_1.getCycleTypeCode(),"D3删除平台周期-3-4-04查询平台标准节假日周期列表-周期类型标识不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq_1.getCycleTypeStandard(),"D3删除平台周期-3-4-04查询平台标准节假日周期列表-冗余周期类型标准化不能为空",false);
Assert.isNull(queryCycleWithinCycleListReq_1.getIsHoliday(),"D3删除平台周期-3-4-04查询平台标准节假日周期列表-是否节假日不能为空",false);
      listOmsCycle_2 = mOmsCycleService.queryCycleWithinCycleList(queryCycleWithinCycleListReq_1)/*vcase invoke 本地 method 方法调用;*/;



           }
boolean bOOLEAN_2 ;
    if(listOmsCycle_2 !=null&& !CollectionUtil.isEmpty(listOmsCycle_2)&& listOmsCycle_2.size()>0 ){
          List<String> listString_1=new ArrayList<>();
  if(listOmsCycle_2!= null&& !CollectionUtil.isEmpty(listOmsCycle_2)&&  listOmsCycle_2 !=null&& !CollectionUtil.isEmpty(listOmsCycle_2)){
  listString_1 = listOmsCycle_2.stream().map(item->item.getCycleId())
        .collect(Collectors.toList());/*list-to-strings*///sourceId:484385_1_23670
    }

    /*3-4-04批量删周期[5383]   */

      bOOLEAN_2 = mOmsCycleService.batchDeleteCycle(listString_1)/*vcase invoke 本地 method 方法调用;*/;



           }
    }
      }
DeletePlatformCycleRespDto retData = new DeletePlatformCycleRespDto();





return retData;
  }
/**
   * D3-执行目标内容父中周期类型分析(公共)[5873]
   * gen by moon at 2/27/2023, 3:48:10 PM
   */
  @Trace(operationName = "D3-执行目标内容父中周期类型分析(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementContentFatherAndMidCycleTypeAnalysisComRespDto implementContentFatherAndMidCycleTypeAnalysisCom(ImplementContentFatherAndMidCycleTypeAnalysisComReqDto reqDto){


      ImplementUnionMultipleDataSetsComRespDto implementUnionMultipleDataSetsComRespDto_1 =null;
//virtualUsage D2-3查询评价模板下父、中周期类型  29243
      QuerySchemeClassMatchEvaTempAnswerDetailComRespDto querySchemeClassMatchEvaTempAnswerDetailComRespDto = null;
    QuerySchemeClassMatchEvaTempAnswerDetailComReqDto querySchemeClassMatchEvaTempAnswerDetailComReqDto=new QuerySchemeClassMatchEvaTempAnswerDetailComReqDto();
  querySchemeClassMatchEvaTempAnswerDetailComReqDto.setConfItemClassCode("CYCLE_SCHEME_CLASS");//CUSTOM_CONVENTION//sourceId:660201_1_29243
querySchemeClassMatchEvaTempAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:660257_1_29243
if(reqDto!=null){
      querySchemeClassMatchEvaTempAnswerDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:660203_1_29243
    }

    /*D2-3查询评价模板下父、中周期类型[3069]   */
    Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getResultAspObjId(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模板下父、中周期类型-评价模板ID不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getConfItemClassCode(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模板下父、中周期类型-分组标识不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getIsPlatData(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模板下父、中周期类型-是否标准答案不能为空",false);
      querySchemeClassMatchEvaTempAnswerDetailComRespDto = fwCompConfSchemeClient.querySchemeClassMatchEvaTempAnswerDetailCom(querySchemeClassMatchEvaTempAnswerDetailComReqDto).getData();



//virtualUsage D2目标内容向右其他周期类型去除模版父周期类型  29244
      ImplementDataFilterSpecRecByComRespDto implementDataFilterSpecRecByComRespDto = null;
    if(querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null){
          ImplementDataFilterSpecRecByComReqDto implementDataFilterSpecRecByComReqDto=new ImplementDataFilterSpecRecByComReqDto();
  if(reqDto!= null&&  reqDto.getCycleTypeList() !=null&& !CollectionUtil.isEmpty(reqDto.getCycleTypeList())){
      implementDataFilterSpecRecByComReqDto.setDataFilterSpecRecByList(//objList-to-objLists
        reqDto.getCycleTypeList().stream().map(item -> {
      DataFilterSpecRecByDto elm = new DataFilterSpecRecByDto();
      if(item!=null){
      elm.setCustomField(item.getCycleTypeCode());//SimpleFieldAssign//sourceId:158011_2_29244
elm.setCustomField3(item.getOrderNumber()!=null?String.valueOf(item.getOrderNumber()):"");//SimpleFieldAssign//sourceId:158012_2_29244
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:660263_1_29244
    }
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      implementDataFilterSpecRecByComReqDto.setCustomField1(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getFatherCycleType());//SimpleFieldAssign//sourceId:660264_1_29244
    }

    /*D2目标内容向右其他周期类型去除模版父周期类型[5477]   */
    Assert.isNull(implementDataFilterSpecRecByComReqDto.getCustomField1(),"D3-执行目标内容父中周期类型分析(公共)-D2目标内容向右其他周期类型去除模版父周期类型-自定义字段1不能为空",false);
      implementDataFilterSpecRecByComRespDto = fwCompInterfaceModeClient.implementDataFilterSpecRecByCom(implementDataFilterSpecRecByComReqDto).getData();



           }
//virtualUsage D2-3查询评价模版父周期类型的排序值  29252
      QueryOptionMatchResultExtendDetailComRespDto queryOptionMatchResultExtendDetailComRespDto = null;
    if(querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null){
          QueryOptionMatchResultExtendDetailComReqDto queryOptionMatchResultExtendDetailComReqDto=new QueryOptionMatchResultExtendDetailComReqDto();
  queryOptionMatchResultExtendDetailComReqDto.setConfItemCode("TEMP_OPEN_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:660271_1_29252
queryOptionMatchResultExtendDetailComReqDto.setResultAspObjType("EVA_TEMP");//sourceId:660272_1_29252
queryOptionMatchResultExtendDetailComReqDto.setIsPlatData("FALSE");//sourceId:660278_1_29252
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      queryOptionMatchResultExtendDetailComReqDto.setEndValue(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getFatherCycleType());//SimpleFieldAssign//sourceId:660281_1_29252
    }
if(reqDto!=null){
      queryOptionMatchResultExtendDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:660273_1_29252
    }

    /*D2-3查询评价模版父周期类型的排序值[3232]   */
    Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getEndValue(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模版父周期类型的排序值-答案值不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getResultAspObjId(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模版父周期类型的排序值-答案归属对象ID不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getConfItemCode(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模版父周期类型的排序值-配置项标识不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getResultAspObjType(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模版父周期类型的排序值-答案归属对象类型不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getIsPlatData(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模版父周期类型的排序值-是否标准答案不能为空",false);
      queryOptionMatchResultExtendDetailComRespDto = fwCompConfSchemeClient.queryOptionMatchResultExtendDetailCom(queryOptionMatchResultExtendDetailComReqDto).getData();



           }
if((reqDto!= null&& reqDto.getMidCycleType() != null )) {
        //if(D3-执行目标内容父中周期类型分析(公共).中期周期类型 值不等于空 )  29248

ImplementDataFilterSpecRecByComRespDto implementDataFilterSpecRecByComRespDto_2 = null;
    if(implementDataFilterSpecRecByComRespDto !=null&&querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null){
          ImplementDataFilterSpecRecByComReqDto implementDataFilterSpecRecByComReqDto_1=new ImplementDataFilterSpecRecByComReqDto();
  if(implementDataFilterSpecRecByComRespDto!= null&&  implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList() !=null&& !CollectionUtil.isEmpty(implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList())){
      implementDataFilterSpecRecByComReqDto_1.setDataFilterSpecRecByList(implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList().stream().map(item -> BeanUtil.toBean(item, DataFilterSpecRecByDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:660266_1_29249
    }
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      implementDataFilterSpecRecByComReqDto_1.setCustomField1(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getMidCycleType());//SimpleFieldAssign//sourceId:660267_1_29249
    }

    /*D2目标内容向右其他周期类型再去除模版中期周期类型（A数据集）[5477]   */
    Assert.isNull(implementDataFilterSpecRecByComReqDto_1.getCustomField1(),"D3-执行目标内容父中周期类型分析(公共)-D2目标内容向右其他周期类型再去除模版中期周期类型（A数据集）-自定义字段1不能为空",false);
      implementDataFilterSpecRecByComRespDto_2 = fwCompInterfaceModeClient.implementDataFilterSpecRecByCom(implementDataFilterSpecRecByComReqDto_1).getData();



           }
QueryOptionMatchResultExtendDetailComRespDto queryOptionMatchResultExtendDetailComRespDto_2 = null;
    if(querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null){
          QueryOptionMatchResultExtendDetailComReqDto queryOptionMatchResultExtendDetailComReqDto_1=new QueryOptionMatchResultExtendDetailComReqDto();
  queryOptionMatchResultExtendDetailComReqDto_1.setConfItemCode("TEMP_OPEN_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:660287_1_29253
queryOptionMatchResultExtendDetailComReqDto_1.setResultAspObjType("EVA_TEMP");//sourceId:660288_1_29253
queryOptionMatchResultExtendDetailComReqDto_1.setIsPlatData("FALSE");//sourceId:660294_1_29253
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      queryOptionMatchResultExtendDetailComReqDto_1.setEndValue(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getMidCycleType());//SimpleFieldAssign//sourceId:660297_1_29253
    }
if(reqDto!=null){
      queryOptionMatchResultExtendDetailComReqDto_1.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:660289_1_29253
    }

    /*D2-3查询评价模版中期周期类型的排序值[3232]   */
    Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_1.getEndValue(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模版中期周期类型的排序值-答案值不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_1.getResultAspObjId(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模版中期周期类型的排序值-答案归属对象ID不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_1.getConfItemCode(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模版中期周期类型的排序值-配置项标识不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_1.getResultAspObjType(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模版中期周期类型的排序值-答案归属对象类型不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_1.getIsPlatData(),"D3-执行目标内容父中周期类型分析(公共)-D2-3查询评价模版中期周期类型的排序值-是否标准答案不能为空",false);
      queryOptionMatchResultExtendDetailComRespDto_2 = fwCompConfSchemeClient.queryOptionMatchResultExtendDetailCom(queryOptionMatchResultExtendDetailComReqDto_1).getData();



           }
ImplementMulitDataToOneDatasComRespDto implementMulitDataToOneDatasComRespDto = null;
    if(queryOptionMatchResultExtendDetailComRespDto !=null&&queryOptionMatchResultExtendDetailComRespDto_2 !=null){
          ImplementMulitDataToOneDatasComReqDto implementMulitDataToOneDatasComReqDto=new ImplementMulitDataToOneDatasComReqDto();
  if(reqDto!=null){
      implementMulitDataToOneDatasComReqDto.setCustomField(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:660299_1_29254
implementMulitDataToOneDatasComReqDto.setCustomField2(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:660301_1_29254
    }
if(queryOptionMatchResultExtendDetailComRespDto!=null){
      implementMulitDataToOneDatasComReqDto.setCustomField1(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:660300_1_29254
    }
if(queryOptionMatchResultExtendDetailComRespDto_2!=null){
      implementMulitDataToOneDatasComReqDto.setCustomField3(queryOptionMatchResultExtendDetailComRespDto_2.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto_2.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:660302_1_29254
    }

    /*D2-将目标内容父周期、中期周期类型+排序结果合并成数据集（B数据集）[5869]   */
    Assert.isNull(implementMulitDataToOneDatasComReqDto.getCustomField(),"D3-执行目标内容父中周期类型分析(公共)-D2-将目标内容父周期、中期周期类型+排序结果合并成数据集（B数据集）-第一条记录A字段不能为空",false);
Assert.isNull(implementMulitDataToOneDatasComReqDto.getCustomField1(),"D3-执行目标内容父中周期类型分析(公共)-D2-将目标内容父周期、中期周期类型+排序结果合并成数据集（B数据集）-第一条记录B字段不能为空",false);
      implementMulitDataToOneDatasComRespDto = fwCompInterfaceModeClient.implementMulitDataToOneDatasCom(implementMulitDataToOneDatasComReqDto).getData();



           }
ImplementUnionMultipleDataSetsComRespDto implementUnionMultipleDataSetsComRespDto = null;
    if(implementDataFilterSpecRecByComRespDto_2 !=null&&implementMulitDataToOneDatasComRespDto !=null){
          ImplementUnionMultipleDataSetsComReqDto implementUnionMultipleDataSetsComReqDto=new ImplementUnionMultipleDataSetsComReqDto();
  if(implementDataFilterSpecRecByComRespDto_2!= null&&  implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList() !=null&& !CollectionUtil.isEmpty(implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList())){
      implementUnionMultipleDataSetsComReqDto.setDataSetsListOne(//objList-to-objLists
        implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList().stream().map(item -> {
            // TODO: 2023/2/8 手写代码
            com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
      if(item!=null){
          // TODO: 2023/2/8 手写代码
      elm.setCustomField1(item.getCustomField());//SimpleFieldAssign//sourceId:158021_2_29259
elm.setCustomField(item.getCustomField3());//SimpleFieldAssign//sourceId:158022_2_29259
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:660310_1_29259
    }
if(implementMulitDataToOneDatasComRespDto!= null&&  implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList() !=null&& !CollectionUtil.isEmpty(implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList())){
      implementUnionMultipleDataSetsComReqDto.setDataSetsListTwo(//objList-to-objLists
        implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList().stream().map(item -> {
      DataSetsListTwoDto elm = new DataSetsListTwoDto();
      if(item!=null){
      elm.setCustomField1(item.getCustomField1());//SimpleFieldAssign//sourceId:162876_2_29259
elm.setCustomField(item.getCustomField2());//SimpleFieldAssign//sourceId:162875_2_29259
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:660311_1_29259
    }

    /*D2执行多数据集取并集（A数据集+B数据集）[5320]   */

      implementUnionMultipleDataSetsComRespDto = fwCompInterfaceModeClient.implementUnionMultipleDataSetsCom(implementUnionMultipleDataSetsComReqDto).getData();


      implementUnionMultipleDataSetsComRespDto_1 = implementUnionMultipleDataSetsComRespDto;
           }
      }
else if((reqDto!= null&& reqDto.getMidCycleType() == null )){
       //elseif(D3-执行目标内容父中周期类型分析(公共).中期周期类型 值等于空 )  29261

ImplementDataFilterSpecRecByComRespDto implementDataFilterSpecRecByComRespDto_4 = null;
    if(implementDataFilterSpecRecByComRespDto !=null&&querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null){
          ImplementDataFilterSpecRecByComReqDto implementDataFilterSpecRecByComReqDto_2=new ImplementDataFilterSpecRecByComReqDto();
  if(implementDataFilterSpecRecByComRespDto!= null&&  implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList() !=null&& !CollectionUtil.isEmpty(implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList())){
      implementDataFilterSpecRecByComReqDto_2.setDataFilterSpecRecByList(implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList().stream().map(item -> BeanUtil.toBean(item, DataFilterSpecRecByDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:660266_1_29262
    }
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      implementDataFilterSpecRecByComReqDto_2.setCustomField1(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getMidCycleType());//SimpleFieldAssign//sourceId:660267_1_29262
    }

    /*D2目标内容向右其他周期类型再去除模版中期周期类型（A数据集）[5477]   */
    Assert.isNull(implementDataFilterSpecRecByComReqDto_2.getCustomField1(),"D3-执行目标内容父中周期类型分析(公共)-D2目标内容向右其他周期类型再去除模版中期周期类型（A数据集）-自定义字段1不能为空",false);
      implementDataFilterSpecRecByComRespDto_4 = fwCompInterfaceModeClient.implementDataFilterSpecRecByCom(implementDataFilterSpecRecByComReqDto_2).getData();



           }
ImplementMulitDataToOneDatasComRespDto implementMulitDataToOneDatasComRespDto_2 = null;
    if(queryOptionMatchResultExtendDetailComRespDto !=null){
          ImplementMulitDataToOneDatasComReqDto implementMulitDataToOneDatasComReqDto_1=new ImplementMulitDataToOneDatasComReqDto();
  if(reqDto!=null){
      implementMulitDataToOneDatasComReqDto_1.setCustomField(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:660299_1_29263
    }
if(queryOptionMatchResultExtendDetailComRespDto!=null){
      implementMulitDataToOneDatasComReqDto_1.setCustomField1(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:660300_1_29263
    }

    /*D2-将目标内容父周期、中期周期类型+排序结果合并成数据集（B数据集）[5869]   */
    Assert.isNull(implementMulitDataToOneDatasComReqDto_1.getCustomField(),"D3-执行目标内容父中周期类型分析(公共)-D2-将目标内容父周期、中期周期类型+排序结果合并成数据集（B数据集）-第一条记录A字段不能为空",false);
Assert.isNull(implementMulitDataToOneDatasComReqDto_1.getCustomField1(),"D3-执行目标内容父中周期类型分析(公共)-D2-将目标内容父周期、中期周期类型+排序结果合并成数据集（B数据集）-第一条记录B字段不能为空",false);
      implementMulitDataToOneDatasComRespDto_2 = fwCompInterfaceModeClient.implementMulitDataToOneDatasCom(implementMulitDataToOneDatasComReqDto_1).getData();



           }
ImplementUnionMultipleDataSetsComRespDto implementUnionMultipleDataSetsComRespDto_2 = null;
    if(implementDataFilterSpecRecByComRespDto_4 !=null&&implementMulitDataToOneDatasComRespDto_2 !=null){
          ImplementUnionMultipleDataSetsComReqDto implementUnionMultipleDataSetsComReqDto_1=new ImplementUnionMultipleDataSetsComReqDto();
  if(implementDataFilterSpecRecByComRespDto_4!= null&&  implementDataFilterSpecRecByComRespDto_4.getDataFilterSpecRecByList() !=null&& !CollectionUtil.isEmpty(implementDataFilterSpecRecByComRespDto_4.getDataFilterSpecRecByList())){
      implementUnionMultipleDataSetsComReqDto_1.setDataSetsListOne(//objList-to-objLists
        implementDataFilterSpecRecByComRespDto_4.getDataFilterSpecRecByList().stream().map(item -> {
      com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
      if(item!=null){
      elm.setCustomField1(item.getCustomField());//SimpleFieldAssign//sourceId:158021_2_29264
elm.setCustomField(item.getCustomField3());//SimpleFieldAssign//sourceId:158022_2_29264
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:660310_1_29264
    }
if(implementMulitDataToOneDatasComRespDto_2!= null&&  implementMulitDataToOneDatasComRespDto_2.getMulitDataToOneDatasList() !=null&& !CollectionUtil.isEmpty(implementMulitDataToOneDatasComRespDto_2.getMulitDataToOneDatasList())){
      implementUnionMultipleDataSetsComReqDto_1.setDataSetsListTwo(//objList-to-objLists
        implementMulitDataToOneDatasComRespDto_2.getMulitDataToOneDatasList().stream().map(item -> {
      DataSetsListTwoDto elm = new DataSetsListTwoDto();
      if(item!=null){
      elm.setCustomField1(item.getCustomField1());//SimpleFieldAssign//sourceId:162876_2_29264
elm.setCustomField(item.getCustomField2());//SimpleFieldAssign//sourceId:162875_2_29264
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:660311_1_29264
    }

    /*D2执行多数据集取并集（A数据集+B数据集）[5320]   */

      implementUnionMultipleDataSetsComRespDto_2 = fwCompInterfaceModeClient.implementUnionMultipleDataSetsCom(implementUnionMultipleDataSetsComReqDto_1).getData();


      implementUnionMultipleDataSetsComRespDto_1 = implementUnionMultipleDataSetsComRespDto_2;
           }
    }
ImplementContentFatherAndMidCycleTypeAnalysisComRespDto retData = new ImplementContentFatherAndMidCycleTypeAnalysisComRespDto();
  if(implementUnionMultipleDataSetsComRespDto_1!=null){
      retData.setContentFatherAndMidCycleTypeAnalysisList(//objList-to-objLists
        implementUnionMultipleDataSetsComRespDto_1.getUnionMultipleDataSetsList().stream().map(item -> {
      ContentFatherAndMidCycleTypeAnalysisDto elm = new ContentFatherAndMidCycleTypeAnalysisDto();
      if(item!=null){
      elm.setCycleTypeCode(item.getCustomField1());//SimpleFieldAssign//sourceId:158029_2
elm.setOrderNumber(item.getCustomField());//SimpleFieldAssign//sourceId:158030_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:660314_1
    }




return retData;
  }
/**
   * D3-3执行当前及向右周期类型分析(公共)[5862]
   * gen by moon at 4/30/2023, 1:07:15 AM
   */
  @Trace(operationName = "D3-3执行当前及向右周期类型分析(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementFatherCycleTypeAnalysisComRespDto implementFatherCycleTypeAnalysisCom(ImplementFatherCycleTypeAnalysisComReqDto reqDto){


      QueryExecuteCycleStageDetailByCycleIdComRespDto queryExecuteCycleStageDetailByCycleIdComRespDto_1 =null;
ImplementAccessParameterBizFieldRespDto receptionServiceRes_1 =null;
//virtualUsage D3-查询执行周期阶段详情（by周期ID）  33161
      QueryExecuteCycleStageDetailByCycleIdComRespDto queryExecuteCycleStageDetailByCycleIdComRespDto = null;
    QueryExecuteCycleStageDetailByCycleIdComReqDto queryExecuteCycleStageDetailByCycleIdComReqDto=new QueryExecuteCycleStageDetailByCycleIdComReqDto();
  queryExecuteCycleStageDetailByCycleIdComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:754505_1_33161
if(reqDto!=null){
      queryExecuteCycleStageDetailByCycleIdComReqDto.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:754507_1_33161
queryExecuteCycleStageDetailByCycleIdComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:754504_1_33161
queryExecuteCycleStageDetailByCycleIdComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:754506_1_33161
    }

    /*D3-查询执行周期阶段详情（by周期ID）[5962]   */
    Assert.isNull(queryExecuteCycleStageDetailByCycleIdComReqDto.getEvaObjTargetCycleId(),"D3-3执行当前及向右周期类型分析(公共)-D3-查询执行周期阶段详情（by周期ID）-被评对象目标周期ID不能为空",false);
Assert.isNull(queryExecuteCycleStageDetailByCycleIdComReqDto.getCycleId(),"D3-3执行当前及向右周期类型分析(公共)-D3-查询执行周期阶段详情（by周期ID）-周期ID不能为空",false);
Assert.isNull(queryExecuteCycleStageDetailByCycleIdComReqDto.getSubjectLifeCycle(),"D3-3执行当前及向右周期类型分析(公共)-D3-查询执行周期阶段详情（by周期ID）-主体生命周期不能为空",false);
Assert.isNull(queryExecuteCycleStageDetailByCycleIdComReqDto.getEvaluationTemplateId(),"D3-3执行当前及向右周期类型分析(公共)-D3-查询执行周期阶段详情（by周期ID）-冗余评价模板ID不能为空",false);
      queryExecuteCycleStageDetailByCycleIdComRespDto = targetCycleService.queryExecuteCycleStageDetailByCycleIdCom(queryExecuteCycleStageDetailByCycleIdComReqDto)/*vcase invoke isSameApp*/;


      queryExecuteCycleStageDetailByCycleIdComRespDto_1 = queryExecuteCycleStageDetailByCycleIdComRespDto;
//virtualUsage D3-执行目标内容周期类型分析(公共)  33154
     ImplementContentCycleTypeAnalysisComRespDto implementContentCycleTypeAnalysisComRespDto = null;
    ImplementContentCycleTypeAnalysisComReqDto implementContentCycleTypeAnalysisComReqDto=new ImplementContentCycleTypeAnalysisComReqDto();
  if(reqDto!=null){
      implementContentCycleTypeAnalysisComReqDto.setFatherMidSubCycleDataModel(reqDto.getFatherMidSubCycleDataModel());//SimpleFieldAssign//sourceId:731032_1_33154
implementContentCycleTypeAnalysisComReqDto.setFatherCycleType(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:727100_1_33154
implementContentCycleTypeAnalysisComReqDto.setMidCycleType(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:727101_1_33154
implementContentCycleTypeAnalysisComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:727102_1_33154
    }

    /*D3-执行目标内容周期类型分析(公共)[6024]   */
    Assert.isNull(implementContentCycleTypeAnalysisComReqDto.getEvaluationTemplateId(),"D3-3执行当前及向右周期类型分析(公共)-D3-执行目标内容周期类型分析(公共)-冗余评价模板ID不能为空",false);
      implementContentCycleTypeAnalysisComRespDto = implementContentCycleTypeAnalysisCom(implementContentCycleTypeAnalysisComReqDto)/*vcase invoke 同服务,同domain*/;



//virtualUsage D2-3查当前周期类型排序值  33155
     QueryOptionMatchResultExtendDetailComRespDto queryOptionMatchResultExtendDetailComRespDto = null;
          QueryOptionMatchResultExtendDetailComReqDto queryOptionMatchResultExtendDetailComReqDto=new QueryOptionMatchResultExtendDetailComReqDto();
  queryOptionMatchResultExtendDetailComReqDto.setConfItemCode("TEMP_OPEN_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:660075_1_33155
queryOptionMatchResultExtendDetailComReqDto.setResultAspObjType("EVA_TEMP");//sourceId:660076_1_33155
queryOptionMatchResultExtendDetailComReqDto.setIsPlatData("FALSE");//sourceId:660082_1_33155
if(reqDto!=null){
      queryOptionMatchResultExtendDetailComReqDto.setEndValue(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:660085_1_33155
queryOptionMatchResultExtendDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:660077_1_33155
    }

    /*D2-3查当前周期类型排序值[3232]   */
    Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getEndValue(),"D3-3执行当前及向右周期类型分析(公共)-D2-3查当前周期类型排序值-答案值不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getResultAspObjId(),"D3-3执行当前及向右周期类型分析(公共)-D2-3查当前周期类型排序值-答案归属对象ID不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getConfItemCode(),"D3-3执行当前及向右周期类型分析(公共)-D2-3查当前周期类型排序值-配置项标识不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getResultAspObjType(),"D3-3执行当前及向右周期类型分析(公共)-D2-3查当前周期类型排序值-答案归属对象类型不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getIsPlatData(),"D3-3执行当前及向右周期类型分析(公共)-D2-3查当前周期类型排序值-是否标准答案不能为空",false);
      queryOptionMatchResultExtendDetailComRespDto = fwCompConfSchemeClient.queryOptionMatchResultExtendDetailCom(queryOptionMatchResultExtendDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



//virtualUsage D2-查目标内容向右周期类型（不含当前的其他周期类型列表）  33156
     ImplementSplitDataBySortComRespDto implementSplitDataBySortComRespDto = null;
    if(implementContentCycleTypeAnalysisComRespDto !=null&&queryOptionMatchResultExtendDetailComRespDto !=null){
          ImplementSplitDataBySortComReqDto implementSplitDataBySortComReqDto=new ImplementSplitDataBySortComReqDto();
  implementSplitDataBySortComReqDto.setCustomField1("FIND_BIG_DATA");//CUSTOM_CONVENTION//sourceId:660637_1_33156
if(implementContentCycleTypeAnalysisComRespDto!= null&&  implementContentCycleTypeAnalysisComRespDto.getCycleTypeList() !=null&& !CollectionUtil.isEmpty(implementContentCycleTypeAnalysisComRespDto.getCycleTypeList())){
      implementSplitDataBySortComReqDto.setComDatasList(//objList-to-objLists
        implementContentCycleTypeAnalysisComRespDto.getCycleTypeList().stream().map(item -> {
      ComDatasDto elm = new ComDatasDto();
      if(item!=null){
      elm.setCustomField1(item.getCustomField());//SimpleFieldAssign//sourceId:158144_2_33156
elm.setCustomField2(item.getCustomField1());//SimpleFieldAssign//sourceId:158145_2_33156
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:660599_1_33156
    }
if(queryOptionMatchResultExtendDetailComRespDto!=null){
      implementSplitDataBySortComReqDto.setCustomField2(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:660638_1_33156
    }

    /*D2-查目标内容向右周期类型（不含当前的其他周期类型列表）[5866]   */
    Assert.isNull(implementSplitDataBySortComReqDto.getCustomField2(),"D3-3执行当前及向右周期类型分析(公共)-D2-查目标内容向右周期类型（不含当前的其他周期类型列表）-自定义字段2不能为空",false);
Assert.isNull(implementSplitDataBySortComReqDto.getCustomField1(),"D3-3执行当前及向右周期类型分析(公共)-D2-查目标内容向右周期类型（不含当前的其他周期类型列表）-区间找数据策略不能为空",false);
      implementSplitDataBySortComRespDto = fwCompInterfaceModeClient.implementSplitDataBySortCom(implementSplitDataBySortComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
if((queryExecuteCycleStageDetailByCycleIdComRespDto!= null&&  queryExecuteCycleStageDetailByCycleIdComRespDto.getIsLastCycle() !=null && queryExecuteCycleStageDetailByCycleIdComRespDto.getIsLastCycle().equals("TRUE"))) {
        //if(D3-查执行周期阶段详情（是否末级周期）.是否末级周期 等于 是)  33157

ImplementMulitDataToOneDatasComRespDto implementMulitDataToOneDatasComRespDto = null;
    if(queryOptionMatchResultExtendDetailComRespDto !=null){
          ImplementMulitDataToOneDatasComReqDto implementMulitDataToOneDatasComReqDto=new ImplementMulitDataToOneDatasComReqDto();
  if(reqDto!=null){
      implementMulitDataToOneDatasComReqDto.setCustomField(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:754468_1_34401
    }
if(queryOptionMatchResultExtendDetailComRespDto!=null){
      implementMulitDataToOneDatasComReqDto.setCustomField1(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:754469_1_34401
    }

    /*D2-将当前周期类型转数据集[5869]   */
    Assert.isNull(implementMulitDataToOneDatasComReqDto.getCustomField(),"D3-3执行当前及向右周期类型分析(公共)-D2-将当前周期类型转数据集-第一条记录A字段不能为空",false);
Assert.isNull(implementMulitDataToOneDatasComReqDto.getCustomField1(),"D3-3执行当前及向右周期类型分析(公共)-D2-将当前周期类型转数据集-第一条记录B字段不能为空",false);
      implementMulitDataToOneDatasComRespDto = fwCompInterfaceModeClient.implementMulitDataToOneDatasCom(implementMulitDataToOneDatasComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
ImplementUnionMultipleDataSetsComRespDto implementUnionMultipleDataSetsComRespDto = null;
    if(implementSplitDataBySortComRespDto !=null&&implementMulitDataToOneDatasComRespDto !=null){
          ImplementUnionMultipleDataSetsComReqDto implementUnionMultipleDataSetsComReqDto=new ImplementUnionMultipleDataSetsComReqDto();
  if(implementSplitDataBySortComRespDto!= null&&  implementSplitDataBySortComRespDto.getComDatasList() !=null&& !CollectionUtil.isEmpty(implementSplitDataBySortComRespDto.getComDatasList())){
      implementUnionMultipleDataSetsComReqDto.setDataSetsListOne(//objList-to-objLists
        implementSplitDataBySortComRespDto.getComDatasList().stream().map(item -> {
      com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField1());//SimpleFieldAssign//sourceId:169425_2_34402
elm.setCustomField1(item.getCustomField2());//SimpleFieldAssign//sourceId:169424_2_34402
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:754478_1_34402
    }
if(implementMulitDataToOneDatasComRespDto!= null&&  implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList() !=null&& !CollectionUtil.isEmpty(implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList())){
      implementUnionMultipleDataSetsComReqDto.setDataSetsListTwo(//objList-to-objLists
        implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList().stream().map(item -> {
      DataSetsListTwoDto elm = new DataSetsListTwoDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField1());//SimpleFieldAssign//sourceId:169428_2_34402
elm.setCustomField1(item.getCustomField2());//SimpleFieldAssign//sourceId:169429_2_34402
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:754479_1_34402
    }

    /*D2-合并当前及向右周期类型数据集[5320]   */

      implementUnionMultipleDataSetsComRespDto = fwCompInterfaceModeClient.implementUnionMultipleDataSetsCom(implementUnionMultipleDataSetsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes = null;
    if(implementUnionMultipleDataSetsComRespDto !=null){
          ImplementAccessParameterBizFieldReqDto receptionServiceReq=new ImplementAccessParameterBizFieldReqDto();
  if(implementUnionMultipleDataSetsComRespDto!= null&&  implementUnionMultipleDataSetsComRespDto.getUnionMultipleDataSetsList() !=null&& !CollectionUtil.isEmpty(implementUnionMultipleDataSetsComRespDto.getUnionMultipleDataSetsList())){
      receptionServiceReq.setCycleTypeList(//objList-to-objLists
        implementUnionMultipleDataSetsComRespDto.getUnionMultipleDataSetsList().stream().map(item -> {
      CycleTypeDto elm = new CycleTypeDto();
      if(item!=null){
      elm.setCycleTypeCode(item.getCustomField());//SimpleFieldAssign//sourceId:169466_2_33163
elm.setOrderNumber(Long.valueOf(item.getCustomField1()));//SimpleFieldAssign//sourceId:169467_2_33163
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:754777_1_33163
    }
if(reqDto!=null){
      receptionServiceReq.setLastEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:754773_1_33163
receptionServiceReq.setLastCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:754774_1_33163
    }

    /*M3-约定出参字段[5797]  用于特殊方法接收上游入参。 */

      receptionServiceRes = nbCycleType.implementAccessParameterBizField(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
           }
      }
else if((queryExecuteCycleStageDetailByCycleIdComRespDto!= null&&  queryExecuteCycleStageDetailByCycleIdComRespDto.getIsLastCycle() !=null && queryExecuteCycleStageDetailByCycleIdComRespDto.getIsLastCycle().equals("FALSE"))){
       //elseif(D3-查执行周期阶段详情（是否末级周期）.是否末级周期 等于 否)  33158

ImplementMulitDataToOneDatasComRespDto implementMulitDataToOneDatasComRespDto_2 = null;
    if(queryOptionMatchResultExtendDetailComRespDto !=null){
          ImplementMulitDataToOneDatasComReqDto implementMulitDataToOneDatasComReqDto_1=new ImplementMulitDataToOneDatasComReqDto();
  if(reqDto!=null){
      implementMulitDataToOneDatasComReqDto_1.setCustomField(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:754468_1_33159
    }
if(queryOptionMatchResultExtendDetailComRespDto!=null){
      implementMulitDataToOneDatasComReqDto_1.setCustomField1(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:754469_1_33159
    }

    /*D2-将当前周期类型转数据集[5869]   */
    Assert.isNull(implementMulitDataToOneDatasComReqDto_1.getCustomField(),"D3-3执行当前及向右周期类型分析(公共)-D2-将当前周期类型转数据集-第一条记录A字段不能为空",false);
Assert.isNull(implementMulitDataToOneDatasComReqDto_1.getCustomField1(),"D3-3执行当前及向右周期类型分析(公共)-D2-将当前周期类型转数据集-第一条记录B字段不能为空",false);
      implementMulitDataToOneDatasComRespDto_2 = fwCompInterfaceModeClient.implementMulitDataToOneDatasCom(implementMulitDataToOneDatasComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
ImplementUnionMultipleDataSetsComRespDto implementUnionMultipleDataSetsComRespDto_2 = null;
    if(implementSplitDataBySortComRespDto !=null&&implementMulitDataToOneDatasComRespDto_2 !=null){
          ImplementUnionMultipleDataSetsComReqDto implementUnionMultipleDataSetsComReqDto_1=new ImplementUnionMultipleDataSetsComReqDto();
  if(implementSplitDataBySortComRespDto!= null&&  implementSplitDataBySortComRespDto.getComDatasList() !=null&& !CollectionUtil.isEmpty(implementSplitDataBySortComRespDto.getComDatasList())){
      implementUnionMultipleDataSetsComReqDto_1.setDataSetsListOne(//objList-to-objLists
        implementSplitDataBySortComRespDto.getComDatasList().stream().map(item -> {
      com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField1());//SimpleFieldAssign//sourceId:169425_2_33160
elm.setCustomField1(item.getCustomField2());//SimpleFieldAssign//sourceId:169424_2_33160
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:754478_1_33160
    }
if(implementMulitDataToOneDatasComRespDto_2!= null&&  implementMulitDataToOneDatasComRespDto_2.getMulitDataToOneDatasList() !=null&& !CollectionUtil.isEmpty(implementMulitDataToOneDatasComRespDto_2.getMulitDataToOneDatasList())){
      implementUnionMultipleDataSetsComReqDto_1.setDataSetsListTwo(//objList-to-objLists
        implementMulitDataToOneDatasComRespDto_2.getMulitDataToOneDatasList().stream().map(item -> {
      DataSetsListTwoDto elm = new DataSetsListTwoDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField1());//SimpleFieldAssign//sourceId:169428_2_33160
elm.setCustomField1(item.getCustomField2());//SimpleFieldAssign//sourceId:169429_2_33160
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:754479_1_33160
    }

    /*D2-合并当前及向右周期类型数据集[5320]   */

      implementUnionMultipleDataSetsComRespDto_2 = fwCompInterfaceModeClient.implementUnionMultipleDataSetsCom(implementUnionMultipleDataSetsComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes_2 = null;
    if(implementUnionMultipleDataSetsComRespDto_2 !=null){
          ImplementAccessParameterBizFieldReqDto receptionServiceReq_1=new ImplementAccessParameterBizFieldReqDto();
  if(implementUnionMultipleDataSetsComRespDto_2!= null&&  implementUnionMultipleDataSetsComRespDto_2.getUnionMultipleDataSetsList() !=null&& !CollectionUtil.isEmpty(implementUnionMultipleDataSetsComRespDto_2.getUnionMultipleDataSetsList())){
      receptionServiceReq_1.setCycleTypeList(//objList-to-objLists
        implementUnionMultipleDataSetsComRespDto_2.getUnionMultipleDataSetsList().stream().map(item -> {
      CycleTypeDto elm = new CycleTypeDto();
      if(item!=null){
      elm.setCycleTypeCode(item.getCustomField());//SimpleFieldAssign//sourceId:169466_2_33164
elm.setOrderNumber(Long.valueOf(item.getCustomField1()));//SimpleFieldAssign//sourceId:169467_2_33164
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:754777_1_33164
    }

    /*M3-约定出参字段[5797]  用于特殊方法接收上游入参。 */

      receptionServiceRes_2 = nbCycleType.implementAccessParameterBizField(receptionServiceReq_1);


      receptionServiceRes_1 = receptionServiceRes_2;
           }
    }
ImplementFatherCycleTypeAnalysisComRespDto retData = new ImplementFatherCycleTypeAnalysisComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setCycleTypeList(receptionServiceRes_1.getCycleTypeList().stream().map(item -> BeanUtil.toBean(item, CycleTypeDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:754779_1
retData.setLastEvaObjTargetCycleId(receptionServiceRes_1.getLastEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:754780_1
retData.setLastCycleId(receptionServiceRes_1.getLastCycleId());//SimpleFieldAssign//sourceId:754781_1
    }
if(queryExecuteCycleStageDetailByCycleIdComRespDto_1!=null){
      retData.setCycleStartTime(queryExecuteCycleStageDetailByCycleIdComRespDto_1.getCycleStartTime());//SimpleFieldAssign//sourceId:754782_1
retData.setCycleEndTime(queryExecuteCycleStageDetailByCycleIdComRespDto_1.getCycleEndTime());//SimpleFieldAssign//sourceId:754783_1
    }




return retData;
  }
/**
   * D3-判断父子中周期(公共)[5898]
   * gen by moon at 2/16/2023, 9:58:45 PM
   */
  @Trace(operationName = "D3-判断父子中周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public JudgeParentSonMidCycleComRespDto judgeParentSonMidCycleCom(JudgeParentSonMidCycleComReqDto reqDto){


      ImplementAccessParameterBizFieldRespDto receptionServiceRes_2 =null;
ImplementAccessParameterBizFieldRespDto receptionServiceRes_4 =null;
ImplementAccessParameterBizFieldRespDto receptionServiceRes_6 =null;
//步骤0: M3执行获取出入参业务字段（特殊方法） - implementAccessParameterBizField
     //ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes = null;
    ImplementAccessParameterBizFieldReqDto receptionServiceReq=new ImplementAccessParameterBizFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:668370_1
receptionServiceReq.setFatherCycleType(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:668367_1
receptionServiceReq.setMidCycleType(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:668368_1
receptionServiceReq.setSubcycleType(reqDto.getSubcycleType());//SimpleFieldAssign//sourceId:668369_1
    }

    /*M3执行获取出入参业务字段（特殊方法）[5797]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCycleTypeCode(),"D3-判断父子中周期(公共)-M3执行获取出入参业务字段（特殊方法）-周期类型标识不能为空",false);
      receptionServiceRes = nbCycleType.implementAccessParameterBizField(receptionServiceReq);




//步骤1: M3执行获取出入参业务字段（特殊方法） - implementAccessParameterBizField
     //ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes_1 = null;
    ImplementAccessParameterBizFieldReqDto receptionServiceReq_1=new ImplementAccessParameterBizFieldReqDto();


    /*是否子周期[5797]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getIsSubCycle(),"D3-判断父子中周期(公共)-是否子周期-是否子周期不能为空",false);
      receptionServiceRes_1 = nbCycleType.implementAccessParameterBizField(receptionServiceReq_1);


      receptionServiceRes_2 = receptionServiceRes_1;

//步骤2: M3执行获取出入参业务字段（特殊方法） - implementAccessParameterBizField
     //ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes_3 = null;
    ImplementAccessParameterBizFieldReqDto receptionServiceReq_2=new ImplementAccessParameterBizFieldReqDto();


    /*是否中期[5797]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getIsMetaphase(),"D3-判断父子中周期(公共)-是否中期-是否中期不能为空",false);
      receptionServiceRes_3 = nbCycleType.implementAccessParameterBizField(receptionServiceReq_2);


      receptionServiceRes_4 = receptionServiceRes_3;

//步骤3: M3执行获取出入参业务字段（特殊方法） - implementAccessParameterBizField
     //ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes_5 = null;
    ImplementAccessParameterBizFieldReqDto receptionServiceReq_3=new ImplementAccessParameterBizFieldReqDto();


    /*是否父周期[5797]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_3.getIsParentCycle(),"D3-判断父子中周期(公共)-是否父周期-是否父周期不能为空",false);
      receptionServiceRes_5 = nbCycleType.implementAccessParameterBizField(receptionServiceReq_3);


      receptionServiceRes_6 = receptionServiceRes_5;

JudgeParentSonMidCycleComRespDto retData = new JudgeParentSonMidCycleComRespDto();
  if(receptionServiceRes_2!=null){
      retData.setIsSubCycle(receptionServiceRes_2.getIsSubCycle());//SimpleFieldAssign//sourceId:668812_1
    }
if(receptionServiceRes_4!=null){
      retData.setIsMetaphase(receptionServiceRes_4.getIsMetaphase());//SimpleFieldAssign//sourceId:668813_1
    }
if(receptionServiceRes_6!=null){
      retData.setIsParentCycle(receptionServiceRes_6.getIsParentCycle());//SimpleFieldAssign//sourceId:668814_1
    }




return retData;
  }
/**
   * D3-执行目标内容周期类型分析(公共)[6024]
   * gen by moon at 4/26/2023, 9:51:22 PM
   */
  @Trace(operationName = "D3-执行目标内容周期类型分析(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementContentCycleTypeAnalysisComRespDto implementContentCycleTypeAnalysisCom(ImplementContentCycleTypeAnalysisComReqDto reqDto){


      ImplementAccessParameterBizFieldRespDto receptionServiceRes_1 =null;
//virtualUsage D2-3查询评价模板周期模式  32264
      QueryConfItemMatchEvaTempAnswerDetailComRespDto queryConfItemMatchEvaTempAnswerDetailComRespDto = null;
    QueryConfItemMatchEvaTempAnswerDetailComReqDto queryConfItemMatchEvaTempAnswerDetailComReqDto=new QueryConfItemMatchEvaTempAnswerDetailComReqDto();
  queryConfItemMatchEvaTempAnswerDetailComReqDto.setConfItemCode("CYCLE_MODE");//CUSTOM_CONVENTION//sourceId:730936_1_32264
queryConfItemMatchEvaTempAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:730973_1_32264
queryConfItemMatchEvaTempAnswerDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:730974_1_32264
  if(reqDto!=null){
      queryConfItemMatchEvaTempAnswerDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:730937_1_32264
    }

    /*D2-3查询评价模板周期模式[3067]   */
    Assert.isNull(queryConfItemMatchEvaTempAnswerDetailComReqDto.getResultAspObjId(),"D3-执行目标内容周期类型分析(公共)-D2-3查询评价模板周期模式-评价模板ID不能为空",false);
Assert.isNull(queryConfItemMatchEvaTempAnswerDetailComReqDto.getConfItemCode(),"D3-执行目标内容周期类型分析(公共)-D2-3查询评价模板周期模式-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchEvaTempAnswerDetailComReqDto.getIsPlatData(),"D3-执行目标内容周期类型分析(公共)-D2-3查询评价模板周期模式-是否标准答案不能为空",false);
Assert.isNull(queryConfItemMatchEvaTempAnswerDetailComReqDto.getSubjectLifeCycle(),"D3-执行目标内容周期类型分析(公共)-D2-3查询评价模板周期模式-主体生命周期不能为空",false);
      queryConfItemMatchEvaTempAnswerDetailComRespDto = fwCompConfSchemeClient.queryConfItemMatchEvaTempAnswerDetailCom(queryConfItemMatchEvaTempAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



if((queryConfItemMatchEvaTempAnswerDetailComRespDto!= null&&  queryConfItemMatchEvaTempAnswerDetailComRespDto.getCycleMode() !=null && queryConfItemMatchEvaTempAnswerDetailComRespDto.getCycleMode().equals("FATHER_SON_CYCLE"))) {
        //if(D2-3查询评价模板周期模式.周期模式 等于 父子周期)  32265

     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setResultAspObjType("EVA_TEMP");//sourceId:726958_1_32269
queryConfItemMatchAnswerListComReqDto.setConfItemCode("TEMP_OPEN_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:726957_1_32269
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:726960_1_32269
if(reqDto!=null){
      queryConfItemMatchAnswerListComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:726959_1_32269
    }

    /*D2-3查启用的周期类型[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"D3-执行目标内容周期类型分析(公共)-D2-3查启用的周期类型-答案归属对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjType(),"D3-执行目标内容周期类型分析(公共)-D2-3查启用的周期类型-答案归属对象类型不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"D3-执行目标内容周期类型分析(公共)-D2-3查启用的周期类型-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"D3-执行目标内容周期类型分析(公共)-D2-3查启用的周期类型-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



     QuerySchemeClassMatchEvaTempAnswerDetailComRespDto querySchemeClassMatchEvaTempAnswerDetailComRespDto = null;
    QuerySchemeClassMatchEvaTempAnswerDetailComReqDto querySchemeClassMatchEvaTempAnswerDetailComReqDto=new QuerySchemeClassMatchEvaTempAnswerDetailComReqDto();
  querySchemeClassMatchEvaTempAnswerDetailComReqDto.setConfItemClassCode("CYCLE_SCHEME_CLASS");//CUSTOM_CONVENTION//sourceId:726967_1_32270
querySchemeClassMatchEvaTempAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:727023_1_32270
if(reqDto!=null){
      querySchemeClassMatchEvaTempAnswerDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:726969_1_32270
    }

    /*D2-3查父中周期类型[3069]   */
    Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getResultAspObjId(),"D3-执行目标内容周期类型分析(公共)-D2-3查父中周期类型-评价模板ID不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getConfItemClassCode(),"D3-执行目标内容周期类型分析(公共)-D2-3查父中周期类型-分组标识不能为空",false);
Assert.isNull(querySchemeClassMatchEvaTempAnswerDetailComReqDto.getIsPlatData(),"D3-执行目标内容周期类型分析(公共)-D2-3查父中周期类型-是否标准答案不能为空",false);
      querySchemeClassMatchEvaTempAnswerDetailComRespDto = fwCompConfSchemeClient.querySchemeClassMatchEvaTempAnswerDetailCom(querySchemeClassMatchEvaTempAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



     ImplementDataFilterSpecRecByComRespDto implementDataFilterSpecRecByComRespDto = null;
    if(queryConfItemMatchAnswerListComRespDto !=null&&querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null){
          ImplementDataFilterSpecRecByComReqDto implementDataFilterSpecRecByComReqDto=new ImplementDataFilterSpecRecByComReqDto();
  if(queryConfItemMatchAnswerListComRespDto!= null&&  queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList())){
      implementDataFilterSpecRecByComReqDto.setDataFilterSpecRecByList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().stream().map(item -> {
      DataFilterSpecRecByDto elm = new DataFilterSpecRecByDto();
      if(item!=null){
      elm.setCustomField(item.getEndValue());//SimpleFieldAssign//sourceId:165472_2_32271
elm.setCustomField3(item.getConfOptionSortNum()!=null?String.valueOf(item.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:165473_2_32271
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:727029_1_32271
    }
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      implementDataFilterSpecRecByComReqDto.setCustomField(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getFatherCycleType());//SimpleFieldAssign//sourceId:727032_1_32271
    }

    /*D2-去除模版父周期类型[5477]   */
    Assert.isNull(implementDataFilterSpecRecByComReqDto.getCustomField(),"D3-执行目标内容周期类型分析(公共)-D2-去除模版父周期类型-自定义字段不能为空",false);
      implementDataFilterSpecRecByComRespDto = fwCompInterfaceModeClient.implementDataFilterSpecRecByCom(implementDataFilterSpecRecByComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
     ImplementDataFilterSpecRecByComRespDto implementDataFilterSpecRecByComRespDto_2 = null;
    if(implementDataFilterSpecRecByComRespDto !=null&&querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null){
          ImplementDataFilterSpecRecByComReqDto implementDataFilterSpecRecByComReqDto_1=new ImplementDataFilterSpecRecByComReqDto();
  if(implementDataFilterSpecRecByComRespDto!= null&&  implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList() !=null&& !CollectionUtil.isEmpty(implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList())){
      implementDataFilterSpecRecByComReqDto_1.setDataFilterSpecRecByList(implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList().stream().map(item -> BeanUtil.toBean(item, DataFilterSpecRecByDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:727033_1_32272
    }
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      implementDataFilterSpecRecByComReqDto_1.setCustomField(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getMidCycleType());//SimpleFieldAssign//sourceId:727036_1_32272
    }

    /*D2-去除模版中期类型[5477]   */

      implementDataFilterSpecRecByComRespDto_2 = fwCompInterfaceModeClient.implementDataFilterSpecRecByCom(implementDataFilterSpecRecByComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
if((reqDto!= null&&  reqDto.getFatherMidSubCycleDataModel() !=null && reqDto.getFatherMidSubCycleDataModel().equals("FATHER_MID_SUB_SAME")||reqDto!= null&&  reqDto.getFatherMidSubCycleDataModel() !=null && reqDto.getFatherMidSubCycleDataModel().equals("FATHER_MID_SAME")||reqDto!= null&&  reqDto.getFatherMidSubCycleDataModel() !=null && reqDto.getFatherMidSubCycleDataModel().equals("FATHER_SUB_SAME"))) {
        //if((D3-执行目标内容周期类型分析(公共).父子中周期数据模型 等于 父子中同体 or D3-执行目标内容周期类型分析(公共).父子中周期数据模型 等于 父中同体 or D3-执行目标内容周期类型分析(公共).父子中周期数据模型 等于 父子同体))  32273

     QueryOptionMatchResultExtendDetailComRespDto queryOptionMatchResultExtendDetailComRespDto = null;
          QueryOptionMatchResultExtendDetailComReqDto queryOptionMatchResultExtendDetailComReqDto=new QueryOptionMatchResultExtendDetailComReqDto();
  queryOptionMatchResultExtendDetailComReqDto.setConfItemCode("TEMP_OPEN_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:727044_1_32279
queryOptionMatchResultExtendDetailComReqDto.setResultAspObjType("EVA_TEMP");//sourceId:727045_1_32279
queryOptionMatchResultExtendDetailComReqDto.setIsPlatData("FALSE");//sourceId:727051_1_32279
if(reqDto!=null){
      queryOptionMatchResultExtendDetailComReqDto.setEndValue(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:727054_1_32279
queryOptionMatchResultExtendDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:727046_1_32279
    }

    /*D2-3查父周期类型排序值[3232]   */
    Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getEndValue(),"D3-执行目标内容周期类型分析(公共)-D2-3查父周期类型排序值-答案值不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getResultAspObjId(),"D3-执行目标内容周期类型分析(公共)-D2-3查父周期类型排序值-答案归属对象ID不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getConfItemCode(),"D3-执行目标内容周期类型分析(公共)-D2-3查父周期类型排序值-配置项标识不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getResultAspObjType(),"D3-执行目标内容周期类型分析(公共)-D2-3查父周期类型排序值-答案归属对象类型不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getIsPlatData(),"D3-执行目标内容周期类型分析(公共)-D2-3查父周期类型排序值-是否标准答案不能为空",false);
      queryOptionMatchResultExtendDetailComRespDto = fwCompConfSchemeClient.queryOptionMatchResultExtendDetailCom(queryOptionMatchResultExtendDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



     ImplementMulitDataToOneDatasComRespDto implementMulitDataToOneDatasComRespDto = null;
    if(queryOptionMatchResultExtendDetailComRespDto !=null){
          ImplementMulitDataToOneDatasComReqDto implementMulitDataToOneDatasComReqDto=new ImplementMulitDataToOneDatasComReqDto();
  if(reqDto!=null){
      implementMulitDataToOneDatasComReqDto.setCustomField(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:727074_1_32280
    }
if(queryOptionMatchResultExtendDetailComRespDto!=null){
      implementMulitDataToOneDatasComReqDto.setCustomField1(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:727075_1_32280
    }

    /*D2-将目标内容父中期周期类型+排序合并成数据集[5869]   */

      implementMulitDataToOneDatasComRespDto = fwCompInterfaceModeClient.implementMulitDataToOneDatasCom(implementMulitDataToOneDatasComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
     ImplementUnionMultipleDataSetsComRespDto implementUnionMultipleDataSetsComRespDto = null;
    if(implementDataFilterSpecRecByComRespDto_2 !=null&&implementMulitDataToOneDatasComRespDto !=null){
          ImplementUnionMultipleDataSetsComReqDto implementUnionMultipleDataSetsComReqDto=new ImplementUnionMultipleDataSetsComReqDto();
  if(implementDataFilterSpecRecByComRespDto_2!= null&&  implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList() !=null&& !CollectionUtil.isEmpty(implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList())){
      implementUnionMultipleDataSetsComReqDto.setDataSetsListOne(//objList-to-objLists
        implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList().stream().map(item -> {
      com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField());//SimpleFieldAssign//sourceId:165483_2_32281
elm.setCustomField1(item.getCustomField3());//SimpleFieldAssign//sourceId:165482_2_32281
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:727084_1_32281
    }
if(implementMulitDataToOneDatasComRespDto!= null&&  implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList() !=null&& !CollectionUtil.isEmpty(implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList())){
      implementUnionMultipleDataSetsComReqDto.setDataSetsListTwo(//objList-to-objLists
        implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList().stream().map(item -> {
      DataSetsListTwoDto elm = new DataSetsListTwoDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField1());//SimpleFieldAssign//sourceId:165486_2_32281
elm.setCustomField1(item.getCustomField2());//SimpleFieldAssign//sourceId:165487_2_32281
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:727085_1_32281
    }

    /*D2执行多数据集取并集(公共)[5320]   */

      implementUnionMultipleDataSetsComRespDto = fwCompInterfaceModeClient.implementUnionMultipleDataSetsCom(implementUnionMultipleDataSetsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes = null;
    if(implementUnionMultipleDataSetsComRespDto !=null){
          ImplementAccessParameterBizFieldReqDto receptionServiceReq=new ImplementAccessParameterBizFieldReqDto();
  if(implementUnionMultipleDataSetsComRespDto!= null&&  implementUnionMultipleDataSetsComRespDto.getUnionMultipleDataSetsList() !=null&& !CollectionUtil.isEmpty(implementUnionMultipleDataSetsComRespDto.getUnionMultipleDataSetsList())){
      receptionServiceReq.setCycleTypeList(//objList-to-objLists
        implementUnionMultipleDataSetsComRespDto.getUnionMultipleDataSetsList().stream().map(item -> {
      CycleTypeDto elm = new CycleTypeDto();
      if(item!=null){
      elm.setCycleTypeCode(item.getCustomField());//SimpleFieldAssign//sourceId:167590_2_32609
elm.setOrderNumber(item.getCustomField1()!=null?Long.valueOf(item.getCustomField1()):null);//SimpleFieldAssign//sourceId:167591_2_32609
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:742214_1_32609
    }

    /*M3接收上文出参数据集字段[5797]  用于特殊方法接收上游入参。 */

      receptionServiceRes = nbCycleType.implementAccessParameterBizField(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
           }
      }
else if((reqDto!= null&&  reqDto.getFatherMidSubCycleDataModel() !=null && reqDto.getFatherMidSubCycleDataModel().equals("FATHER_MID_SUB_DIFF"))){
       //elseif(D3-执行目标内容周期类型分析(公共).父子中周期数据模型 等于 父子中独立)  32274

QueryOptionMatchResultExtendDetailComRespDto queryOptionMatchResultExtendDetailComRespDto_2 = null;
    if(querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null){
          QueryOptionMatchResultExtendDetailComReqDto queryOptionMatchResultExtendDetailComReqDto_1=new QueryOptionMatchResultExtendDetailComReqDto();
  queryOptionMatchResultExtendDetailComReqDto_1.setConfItemCode("TEMP_OPEN_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:727044_1_32275
queryOptionMatchResultExtendDetailComReqDto_1.setResultAspObjType("EVA_TEMP");//sourceId:727045_1_32275
queryOptionMatchResultExtendDetailComReqDto_1.setIsPlatData("FALSE");//sourceId:727051_1_32275
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      queryOptionMatchResultExtendDetailComReqDto_1.setEndValue(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getFatherCycleType());//SimpleFieldAssign//sourceId:727054_1_32275
    }
if(reqDto!=null){
      queryOptionMatchResultExtendDetailComReqDto_1.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:727046_1_32275
    }

    /*D2-3查父周期类型排序值[3232]   */
    Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_1.getEndValue(),"D3-执行目标内容周期类型分析(公共)-D2-3查父周期类型排序值-答案值不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_1.getResultAspObjId(),"D3-执行目标内容周期类型分析(公共)-D2-3查父周期类型排序值-答案归属对象ID不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_1.getConfItemCode(),"D3-执行目标内容周期类型分析(公共)-D2-3查父周期类型排序值-配置项标识不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_1.getResultAspObjType(),"D3-执行目标内容周期类型分析(公共)-D2-3查父周期类型排序值-答案归属对象类型不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_1.getIsPlatData(),"D3-执行目标内容周期类型分析(公共)-D2-3查父周期类型排序值-是否标准答案不能为空",false);
      queryOptionMatchResultExtendDetailComRespDto_2 = fwCompConfSchemeClient.queryOptionMatchResultExtendDetailCom(queryOptionMatchResultExtendDetailComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
if((querySchemeClassMatchEvaTempAnswerDetailComRespDto!= null&& querySchemeClassMatchEvaTempAnswerDetailComRespDto.getMidCycleType() != null )) {
        //if(D2-3查父中周期类型.中期周期类型 值不等于空 )  32282

QueryOptionMatchResultExtendDetailComRespDto queryOptionMatchResultExtendDetailComRespDto_3 = null;
    if(querySchemeClassMatchEvaTempAnswerDetailComRespDto !=null){
          QueryOptionMatchResultExtendDetailComReqDto queryOptionMatchResultExtendDetailComReqDto_2=new QueryOptionMatchResultExtendDetailComReqDto();
  queryOptionMatchResultExtendDetailComReqDto_2.setConfItemCode("TEMP_OPEN_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:727058_1_32283
queryOptionMatchResultExtendDetailComReqDto_2.setResultAspObjType("EVA_TEMP");//sourceId:727059_1_32283
queryOptionMatchResultExtendDetailComReqDto_2.setIsPlatData("FALSE");//sourceId:727065_1_32283
if(querySchemeClassMatchEvaTempAnswerDetailComRespDto!=null){
      queryOptionMatchResultExtendDetailComReqDto_2.setEndValue(querySchemeClassMatchEvaTempAnswerDetailComRespDto.getMidCycleType());//SimpleFieldAssign//sourceId:727068_1_32283
    }
if(reqDto!=null){
      queryOptionMatchResultExtendDetailComReqDto_2.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:727060_1_32283
    }

    /*D2-3查中期类型排序值[3232]   */
    Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_2.getEndValue(),"D3-执行目标内容周期类型分析(公共)-D2-3查中期类型排序值-答案值不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_2.getResultAspObjId(),"D3-执行目标内容周期类型分析(公共)-D2-3查中期类型排序值-答案归属对象ID不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_2.getConfItemCode(),"D3-执行目标内容周期类型分析(公共)-D2-3查中期类型排序值-配置项标识不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_2.getResultAspObjType(),"D3-执行目标内容周期类型分析(公共)-D2-3查中期类型排序值-答案归属对象类型不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto_2.getIsPlatData(),"D3-执行目标内容周期类型分析(公共)-D2-3查中期类型排序值-是否标准答案不能为空",false);
      queryOptionMatchResultExtendDetailComRespDto_3 = fwCompConfSchemeClient.queryOptionMatchResultExtendDetailCom(queryOptionMatchResultExtendDetailComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;



           }
ImplementMulitDataToOneDatasComRespDto implementMulitDataToOneDatasComRespDto_2 = null;
    if(queryOptionMatchResultExtendDetailComRespDto_2 !=null&&queryOptionMatchResultExtendDetailComRespDto_3 !=null){
          ImplementMulitDataToOneDatasComReqDto implementMulitDataToOneDatasComReqDto_1=new ImplementMulitDataToOneDatasComReqDto();
  if(reqDto!=null){
      implementMulitDataToOneDatasComReqDto_1.setCustomField(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:727074_1_32284
implementMulitDataToOneDatasComReqDto_1.setCustomField2(reqDto.getMidCycleType());//SimpleFieldAssign//sourceId:727076_1_32284
    }
if(queryOptionMatchResultExtendDetailComRespDto_2!=null){
      implementMulitDataToOneDatasComReqDto_1.setCustomField1(queryOptionMatchResultExtendDetailComRespDto_2.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto_2.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:727075_1_32284
    }
if(queryOptionMatchResultExtendDetailComRespDto_3!=null){
      implementMulitDataToOneDatasComReqDto_1.setCustomField3(queryOptionMatchResultExtendDetailComRespDto_3.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto_3.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:727077_1_32284
    }

    /*D2-将目标内容父中期周期类型+排序合并成数据集[5869]   */

      implementMulitDataToOneDatasComRespDto_2 = fwCompInterfaceModeClient.implementMulitDataToOneDatasCom(implementMulitDataToOneDatasComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
ImplementUnionMultipleDataSetsComRespDto implementUnionMultipleDataSetsComRespDto_2 = null;
    if(implementDataFilterSpecRecByComRespDto_2 !=null&&implementMulitDataToOneDatasComRespDto_2 !=null){
          ImplementUnionMultipleDataSetsComReqDto implementUnionMultipleDataSetsComReqDto_1=new ImplementUnionMultipleDataSetsComReqDto();
  if(implementDataFilterSpecRecByComRespDto_2!= null&&  implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList() !=null&& !CollectionUtil.isEmpty(implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList())){
      implementUnionMultipleDataSetsComReqDto_1.setDataSetsListOne(//objList-to-objLists
        implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList().stream().map(item -> {
      com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField());//SimpleFieldAssign//sourceId:165483_2_32285
elm.setCustomField1(item.getCustomField3());//SimpleFieldAssign//sourceId:165482_2_32285
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:727084_1_32285
    }
if(implementMulitDataToOneDatasComRespDto_2!= null&&  implementMulitDataToOneDatasComRespDto_2.getMulitDataToOneDatasList() !=null&& !CollectionUtil.isEmpty(implementMulitDataToOneDatasComRespDto_2.getMulitDataToOneDatasList())){
      implementUnionMultipleDataSetsComReqDto_1.setDataSetsListTwo(//objList-to-objLists
        implementMulitDataToOneDatasComRespDto_2.getMulitDataToOneDatasList().stream().map(item -> {
      DataSetsListTwoDto elm = new DataSetsListTwoDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField1());//SimpleFieldAssign//sourceId:165486_2_32285
elm.setCustomField1(item.getCustomField2());//SimpleFieldAssign//sourceId:165487_2_32285
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:727085_1_32285
    }

    /*D2执行多数据集取并集(公共)[5320]   */

      implementUnionMultipleDataSetsComRespDto_2 = fwCompInterfaceModeClient.implementUnionMultipleDataSetsCom(implementUnionMultipleDataSetsComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes_2 = null;
    if(implementUnionMultipleDataSetsComRespDto_2 !=null){
          ImplementAccessParameterBizFieldReqDto receptionServiceReq_1=new ImplementAccessParameterBizFieldReqDto();
  if(implementUnionMultipleDataSetsComRespDto_2!= null&&  implementUnionMultipleDataSetsComRespDto_2.getUnionMultipleDataSetsList() !=null&& !CollectionUtil.isEmpty(implementUnionMultipleDataSetsComRespDto_2.getUnionMultipleDataSetsList())){
      receptionServiceReq_1.setCycleTypeList(//objList-to-objLists
        implementUnionMultipleDataSetsComRespDto_2.getUnionMultipleDataSetsList().stream().map(item -> {
      CycleTypeDto elm = new CycleTypeDto();
      if(item!=null){
      elm.setCycleTypeCode(item.getCustomField());//SimpleFieldAssign//sourceId:167590_2_32610
elm.setOrderNumber(item.getCustomField1()!=null?Long.valueOf(item.getCustomField1()):null);//SimpleFieldAssign//sourceId:167591_2_32610
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:742214_1_32610
    }

    /*M3接收上文出参数据集字段[5797]  用于特殊方法接收上游入参。 */

      receptionServiceRes_2 = nbCycleType.implementAccessParameterBizField(receptionServiceReq_1);


      receptionServiceRes_1 = receptionServiceRes_2;
           }
      }
else{
       //else  32286

ImplementMulitDataToOneDatasComRespDto implementMulitDataToOneDatasComRespDto_3 = null;
    if(queryOptionMatchResultExtendDetailComRespDto_2 !=null){
          ImplementMulitDataToOneDatasComReqDto implementMulitDataToOneDatasComReqDto_2=new ImplementMulitDataToOneDatasComReqDto();
  if(reqDto!=null){
      implementMulitDataToOneDatasComReqDto_2.setCustomField(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:727074_1_32287
    }
if(queryOptionMatchResultExtendDetailComRespDto_2!=null){
      implementMulitDataToOneDatasComReqDto_2.setCustomField1(queryOptionMatchResultExtendDetailComRespDto_2.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto_2.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:727075_1_32287
    }

    /*D2-将目标内容父中期周期类型+排序合并成数据集[5869]   */

      implementMulitDataToOneDatasComRespDto_3 = fwCompInterfaceModeClient.implementMulitDataToOneDatasCom(implementMulitDataToOneDatasComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;



           }
ImplementUnionMultipleDataSetsComRespDto implementUnionMultipleDataSetsComRespDto_3 = null;
    if(implementDataFilterSpecRecByComRespDto_2 !=null&&implementMulitDataToOneDatasComRespDto_3 !=null){
          ImplementUnionMultipleDataSetsComReqDto implementUnionMultipleDataSetsComReqDto_2=new ImplementUnionMultipleDataSetsComReqDto();
  if(implementDataFilterSpecRecByComRespDto_2!= null&&  implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList() !=null&& !CollectionUtil.isEmpty(implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList())){
      implementUnionMultipleDataSetsComReqDto_2.setDataSetsListOne(//objList-to-objLists
        implementDataFilterSpecRecByComRespDto_2.getDataFilterSpecRecByList().stream().map(item -> {
      com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField());//SimpleFieldAssign//sourceId:165483_2_32288
elm.setCustomField1(item.getCustomField3());//SimpleFieldAssign//sourceId:165482_2_32288
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:727084_1_32288
    }
if(implementMulitDataToOneDatasComRespDto_3!= null&&  implementMulitDataToOneDatasComRespDto_3.getMulitDataToOneDatasList() !=null&& !CollectionUtil.isEmpty(implementMulitDataToOneDatasComRespDto_3.getMulitDataToOneDatasList())){
      implementUnionMultipleDataSetsComReqDto_2.setDataSetsListTwo(//objList-to-objLists
        implementMulitDataToOneDatasComRespDto_3.getMulitDataToOneDatasList().stream().map(item -> {
      DataSetsListTwoDto elm = new DataSetsListTwoDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField1());//SimpleFieldAssign//sourceId:165486_2_32288
elm.setCustomField1(item.getCustomField2());//SimpleFieldAssign//sourceId:165487_2_32288
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:727085_1_32288
    }

    /*D2执行多数据集取并集(公共)[5320]   */

      implementUnionMultipleDataSetsComRespDto_3 = fwCompInterfaceModeClient.implementUnionMultipleDataSetsCom(implementUnionMultipleDataSetsComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes_3 = null;
    if(implementUnionMultipleDataSetsComRespDto_3 !=null){
          ImplementAccessParameterBizFieldReqDto receptionServiceReq_2=new ImplementAccessParameterBizFieldReqDto();
  if(implementUnionMultipleDataSetsComRespDto_3!= null&&  implementUnionMultipleDataSetsComRespDto_3.getUnionMultipleDataSetsList() !=null&& !CollectionUtil.isEmpty(implementUnionMultipleDataSetsComRespDto_3.getUnionMultipleDataSetsList())){
      receptionServiceReq_2.setCycleTypeList(//objList-to-objLists
        implementUnionMultipleDataSetsComRespDto_3.getUnionMultipleDataSetsList().stream().map(item -> {
      CycleTypeDto elm = new CycleTypeDto();
      if(item!=null){
      elm.setCycleTypeCode(item.getCustomField());//SimpleFieldAssign//sourceId:167590_2_32611
elm.setOrderNumber(item.getCustomField1()!=null?Long.valueOf(item.getCustomField1()):null);//SimpleFieldAssign//sourceId:167591_2_32611
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:742214_1_32611
    }

    /*M3接收上文出参数据集字段[5797]  用于特殊方法接收上游入参。 */

      receptionServiceRes_3 = nbCycleType.implementAccessParameterBizField(receptionServiceReq_2);


      receptionServiceRes_1 = receptionServiceRes_3;
           }
    }
    }
      }
else{
       //else  32266

QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto_2 = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto_1=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto_1.setResultAspObjType("EVA_TEMP");//sourceId:726958_1_32268
queryConfItemMatchAnswerListComReqDto_1.setConfItemCode("TEMP_OPEN_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:726957_1_32268
queryConfItemMatchAnswerListComReqDto_1.setIsPlatData("FALSE");//sourceId:726960_1_32268
if(reqDto!=null){
      queryConfItemMatchAnswerListComReqDto_1.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:726959_1_32268
    }

    /*D2-3查启用的周期类型[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getResultAspObjId(),"D3-执行目标内容周期类型分析(公共)-D2-3查启用的周期类型-答案归属对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getResultAspObjType(),"D3-执行目标内容周期类型分析(公共)-D2-3查启用的周期类型-答案归属对象类型不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getConfItemCode(),"D3-执行目标内容周期类型分析(公共)-D2-3查启用的周期类型-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto_1.getIsPlatData(),"D3-执行目标内容周期类型分析(公共)-D2-3查启用的周期类型-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto_2 = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;



//ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes_4 = null;
    if(queryConfItemMatchAnswerListComRespDto_2 !=null){
          ImplementAccessParameterBizFieldReqDto receptionServiceReq_3=new ImplementAccessParameterBizFieldReqDto();
  if(queryConfItemMatchAnswerListComRespDto_2!= null&&  queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList())){
      receptionServiceReq_3.setCycleTypeList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto_2.getConfSchemeItemResultList().stream().map(item -> {
      CycleTypeDto elm = new CycleTypeDto();
      if(item!=null){
      elm.setCycleTypeCode(item.getEndValue());//SimpleFieldAssign//sourceId:167590_2_32612
elm.setOrderNumber(item.getConfOptionSortNum());//SimpleFieldAssign//sourceId:167591_2_32612
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:742214_1_32612
    }

    /*M3接收上文出参数据集字段[5797]  用于特殊方法接收上游入参。 */

      receptionServiceRes_4 = nbCycleType.implementAccessParameterBizField(receptionServiceReq_3);


      receptionServiceRes_1 = receptionServiceRes_4;
           }
    }
ImplementContentCycleTypeAnalysisComRespDto retData = new ImplementContentCycleTypeAnalysisComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setCycleTypeList(//objList-to-objLists
        receptionServiceRes_1.getCycleTypeList().stream().map(item -> {
      CycleTypeDto elm = new CycleTypeDto();
      if(item!=null){
      elm.setCustomField(item.getCycleTypeCode());//SimpleFieldAssign//sourceId:165490_2
elm.setCustomField1(item.getOrderNumber()!=null?String.valueOf(item.getOrderNumber()):"");//SimpleFieldAssign//sourceId:165491_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:727099_1
    }




return retData;
  }
/**
   * D3-执行向右周期类型分析(公共)[6315]
   * gen by moon at 10/15/2023, 3:36:12 AM
   */
  @Trace(operationName = "D3-执行向右周期类型分析(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementFatherProcessCycleTypeAnalysisComRespDto implementFatherProcessCycleTypeAnalysisCom(ImplementFatherProcessCycleTypeAnalysisComReqDto reqDto){


      ImplementAccessParameterBizFieldRespDto receptionServiceRes_2 =null;
//步骤0: M3执行获取出入参业务字段（特殊方法） - implementAccessParameterBizField
     //ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes = null;
    ImplementAccessParameterBizFieldReqDto receptionServiceReq=new ImplementAccessParameterBizFieldReqDto();
  if(reqDto!=null){
receptionServiceReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:842248_1
receptionServiceReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1042891_1
receptionServiceReq.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:1163344_1
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:842249_1
    }

    /*M3-接收入参字段[5797]  用于特殊方法接收上游入参。 */
Assert.isNull(receptionServiceReq.getCycleId(),"D3-执行向右周期类型分析(公共)-M3-接收入参字段-周期ID不能为空",false);
Assert.isNull(receptionServiceReq.getTargetCycleContentId(),"D3-执行向右周期类型分析(公共)-M3-接收入参字段-关联目标内容ID不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D3-执行向右周期类型分析(公共)-M3-接收入参字段-冗余评价模板ID不能为空",false);
      receptionServiceRes = nbCycleType.implementAccessParameterBizField(receptionServiceReq);




//步骤1: D2-3查配置项匹配答案列表(公共)（跨服务） - queryConfItemMatchAnswerListCom
     QueryConfItemMatchAnswerListComRespDto queryConfItemMatchAnswerListComRespDto = null;
    QueryConfItemMatchAnswerListComReqDto queryConfItemMatchAnswerListComReqDto=new QueryConfItemMatchAnswerListComReqDto();
  queryConfItemMatchAnswerListComReqDto.setConfItemCode("TEMP_OPEN_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:839934_1
queryConfItemMatchAnswerListComReqDto.setIsPlatData("FALSE");//sourceId:839937_1
if(reqDto!=null){
      queryConfItemMatchAnswerListComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:839936_1
    }

    /*D2-3查评价模板启用周期类型[2505]   */
    Assert.isNull(queryConfItemMatchAnswerListComReqDto.getResultAspObjId(),"D3-执行向右周期类型分析(公共)-D2-3查评价模板启用周期类型-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getConfItemCode(),"D3-执行向右周期类型分析(公共)-D2-3查评价模板启用周期类型-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerListComReqDto.getIsPlatData(),"D3-执行向右周期类型分析(公共)-D2-3查评价模板启用周期类型-是否标准答案不能为空",false);
      queryConfItemMatchAnswerListComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerListCom(queryConfItemMatchAnswerListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




//步骤2: D3获取当前目标内容执行周期(公共) - obtainCurrentTargetContexeCuteCycleCom
     ObtainCurrentTargetContexeCuteCycleComRespDto obtainCurrentTargetContexeCuteCycleComRespDto = null;
    ObtainCurrentTargetContexeCuteCycleComReqDto obtainCurrentTargetContexeCuteCycleComReqDto=new ObtainCurrentTargetContexeCuteCycleComReqDto();
if(reqDto!=null){
      obtainCurrentTargetContexeCuteCycleComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1163307_1
obtainCurrentTargetContexeCuteCycleComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1163308_1
obtainCurrentTargetContexeCuteCycleComReqDto.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:1163309_1
obtainCurrentTargetContexeCuteCycleComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1163310_1
    }

    /*D3获取当前目标内容执行周期(公共)[7501]   */
    Assert.isNull(obtainCurrentTargetContexeCuteCycleComReqDto.getCycleId(),"D3-执行向右周期类型分析(公共)-D3获取当前目标内容执行周期(公共)-周期ID不能为空",false);
Assert.isNull(obtainCurrentTargetContexeCuteCycleComReqDto.getTargetCycleContentId(),"D3-执行向右周期类型分析(公共)-D3获取当前目标内容执行周期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(obtainCurrentTargetContexeCuteCycleComReqDto.getTargetId(),"D3-执行向右周期类型分析(公共)-D3获取当前目标内容执行周期(公共)-冗余目标ID不能为空",false);
Assert.isNull(obtainCurrentTargetContexeCuteCycleComReqDto.getEvaluationTemplateId(),"D3-执行向右周期类型分析(公共)-D3获取当前目标内容执行周期(公共)-冗余评价模板ID不能为空",false);
      obtainCurrentTargetContexeCuteCycleComRespDto = executeCycleService.obtainCurrentTargetContexeCuteCycleCom(obtainCurrentTargetContexeCuteCycleComReqDto)/*vcase invoke isSameApp*/;




//步骤3: D2-3查询选项匹配结果扩展信息详情(公共) - queryOptionMatchResultExtendDetailCom
     QueryOptionMatchResultExtendDetailComRespDto queryOptionMatchResultExtendDetailComRespDto = null;
    if(obtainCurrentTargetContexeCuteCycleComRespDto !=null){
          QueryOptionMatchResultExtendDetailComReqDto queryOptionMatchResultExtendDetailComReqDto=new QueryOptionMatchResultExtendDetailComReqDto();
  queryOptionMatchResultExtendDetailComReqDto.setConfItemCode("TEMP_OPEN_CYCLE_TYPE");//CUSTOM_CONVENTION//sourceId:953075_1
queryOptionMatchResultExtendDetailComReqDto.setResultAspObjType("EVA_TEMP");//sourceId:839887_1
queryOptionMatchResultExtendDetailComReqDto.setIsPlatData("FALSE");//sourceId:839893_1
if(obtainCurrentTargetContexeCuteCycleComRespDto!=null){
      queryOptionMatchResultExtendDetailComReqDto.setEndValue(obtainCurrentTargetContexeCuteCycleComRespDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:839896_1
    }
if(reqDto!=null){
      queryOptionMatchResultExtendDetailComReqDto.setResultAspObjId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:839888_1
    }

    /*D2-3查当前周期类型排序值[3232]   */
    Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getEndValue(),"D3-执行向右周期类型分析(公共)-D2-3查当前周期类型排序值-答案值不能为空",false);
    Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getResultAspObjId(),"D3-执行向右周期类型分析(公共)-D2-3查当前周期类型排序值-开通对象ID不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getConfItemCode(),"D3-执行向右周期类型分析(公共)-D2-3查当前周期类型排序值-配置项标识不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getResultAspObjType(),"D3-执行向右周期类型分析(公共)-D2-3查当前周期类型排序值-开通对象类型编码不能为空",false);
Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getIsPlatData(),"D3-执行向右周期类型分析(公共)-D2-3查当前周期类型排序值-是否标准答案不能为空",false);
      queryOptionMatchResultExtendDetailComRespDto = fwCompConfSchemeClient.queryOptionMatchResultExtendDetailCom(queryOptionMatchResultExtendDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

//步骤4: D2执行根据排序左右切数据(公共) - implementSplitDataBySortCom
     ImplementSplitDataBySortComRespDto implementSplitDataBySortComRespDto = null;
    if(queryConfItemMatchAnswerListComRespDto !=null){
          ImplementSplitDataBySortComReqDto implementSplitDataBySortComReqDto=new ImplementSplitDataBySortComReqDto();
  implementSplitDataBySortComReqDto.setCustomField1("FIND_BIG_DATA");//CUSTOM_CONVENTION//sourceId:839921_1
if(queryConfItemMatchAnswerListComRespDto!= null&&  queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList() !=null&& !CollectionUtil.isEmpty(queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList())){
      implementSplitDataBySortComReqDto.setComDatasList(//objList-to-objLists
        queryConfItemMatchAnswerListComRespDto.getConfSchemeItemResultList().stream().map(item -> {
      ComDatasDto elm = new ComDatasDto();
      if(item!=null){
      elm.setCustomField1(item.getEndValue());//SimpleFieldAssign//sourceId:183495_2
elm.setCustomField2(item.getConfOptionSortNum()!=null?String.valueOf(item.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:183496_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:839920_1
    }
if(queryOptionMatchResultExtendDetailComRespDto!=null){
      implementSplitDataBySortComReqDto.setCustomField2(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:839922_1
    }

    /*D2-查模版周期类型范围内当前向右（不含当前）[5866]   */
    Assert.isNull(implementSplitDataBySortComReqDto.getCustomField2(),"D3-执行向右周期类型分析(公共)-D2-查模版周期类型范围内当前向右（不含当前）-自定义字段2不能为空",false);
Assert.isNull(implementSplitDataBySortComReqDto.getCustomField1(),"D3-执行向右周期类型分析(公共)-D2-查模版周期类型范围内当前向右（不含当前）-区间找数据策略不能为空",false);
      implementSplitDataBySortComRespDto = fwCompInterfaceModeClient.implementSplitDataBySortCom(implementSplitDataBySortComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

//步骤5: D2-执行多条转数据集(公共) - implementMulitDataToOneDatasCom
     ImplementMulitDataToOneDatasComRespDto implementMulitDataToOneDatasComRespDto = null;
    if(obtainCurrentTargetContexeCuteCycleComRespDto !=null){
          ImplementMulitDataToOneDatasComReqDto implementMulitDataToOneDatasComReqDto=new ImplementMulitDataToOneDatasComReqDto();
  if(obtainCurrentTargetContexeCuteCycleComRespDto!=null){
      implementMulitDataToOneDatasComReqDto.setCustomField(obtainCurrentTargetContexeCuteCycleComRespDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:839923_1
    }
if(queryOptionMatchResultExtendDetailComRespDto!=null){
      implementMulitDataToOneDatasComReqDto.setCustomField1(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()!=null?String.valueOf(queryOptionMatchResultExtendDetailComRespDto.getConfOptionSortNum()):"");//SimpleFieldAssign//sourceId:839924_1
    }

    /*D2-将当前周期类型转数据集[5869]   */

      implementMulitDataToOneDatasComRespDto = fwCompInterfaceModeClient.implementMulitDataToOneDatasCom(implementMulitDataToOneDatasComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

//步骤6: D2执行多数据集取并集(公共) - implementUnionMultipleDataSetsCom
     ImplementUnionMultipleDataSetsComRespDto implementUnionMultipleDataSetsComRespDto = null;
    if(implementMulitDataToOneDatasComRespDto !=null){
          ImplementUnionMultipleDataSetsComReqDto implementUnionMultipleDataSetsComReqDto=new ImplementUnionMultipleDataSetsComReqDto();
  if(implementMulitDataToOneDatasComRespDto!= null&&  implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList() !=null&& !CollectionUtil.isEmpty(implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList())){
      implementUnionMultipleDataSetsComReqDto.setDataSetsListOne(//objList-to-objLists
        implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList().stream().map(item -> {
      com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField1());//SimpleFieldAssign//sourceId:183500_2
elm.setCustomField1(item.getCustomField2());//SimpleFieldAssign//sourceId:183499_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:839930_1
    }
if(implementSplitDataBySortComRespDto!= null&&  implementSplitDataBySortComRespDto.getComDatasList() !=null&& !CollectionUtil.isEmpty(implementSplitDataBySortComRespDto.getComDatasList())){
      implementUnionMultipleDataSetsComReqDto.setDataSetsListTwo(//objList-to-objLists
        implementSplitDataBySortComRespDto.getComDatasList().stream().map(item -> {
      DataSetsListTwoDto elm = new DataSetsListTwoDto();
      if(item!=null){
      elm.setCustomField(item.getCustomField1());//SimpleFieldAssign//sourceId:183503_2
elm.setCustomField1(item.getCustomField2());//SimpleFieldAssign//sourceId:183504_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:839931_1
    }

    /*D2-合并当前及向右周期类型数据集[5320]   */

      implementUnionMultipleDataSetsComRespDto = fwCompInterfaceModeClient.implementUnionMultipleDataSetsCom(implementUnionMultipleDataSetsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

//步骤7: M3执行获取出入参业务字段（特殊方法） - implementAccessParameterBizField
     //ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes_1 = null;
    if(implementUnionMultipleDataSetsComRespDto !=null){
          ImplementAccessParameterBizFieldReqDto receptionServiceReq_1=new ImplementAccessParameterBizFieldReqDto();
  if(implementUnionMultipleDataSetsComRespDto!= null&&  implementUnionMultipleDataSetsComRespDto.getUnionMultipleDataSetsList() !=null&& !CollectionUtil.isEmpty(implementUnionMultipleDataSetsComRespDto.getUnionMultipleDataSetsList())){
      receptionServiceReq_1.setCycleTypeList(//objList-to-objLists
        implementUnionMultipleDataSetsComRespDto.getUnionMultipleDataSetsList().stream().map(item -> {
      CycleTypeDto elm = new CycleTypeDto();
      if(item!=null){
      elm.setCycleTypeCode(item.getCustomField());//SimpleFieldAssign//sourceId:185099_2
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:843416_1
    }

    /*M3-约定出参：向右过程执行周期列表[5797]  用于特殊方法接收上游入参。 */

      receptionServiceRes_1 = nbCycleType.implementAccessParameterBizField(receptionServiceReq_1);


      receptionServiceRes_2 = receptionServiceRes_1;
           }

ImplementFatherProcessCycleTypeAnalysisComRespDto retData = new ImplementFatherProcessCycleTypeAnalysisComRespDto();
  if(receptionServiceRes_2!= null&&  receptionServiceRes_2.getCycleTypeList() !=null&& !CollectionUtil.isEmpty(receptionServiceRes_2.getCycleTypeList())){
      retData.setFatherProcessCycleTypeList(receptionServiceRes_2.getCycleTypeList().stream().map(item->item.getCycleTypeCode())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:842257_1
    }




return retData;
  }
/**
   * D3新增不规则周期(公共)[6709]
   * gen by moon at 5/15/2023, 10:29:32 PM
   */
  @Trace(operationName = "D3新增不规则周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AddIrregularCycleComRespDto addIrregularCycleCom(AddIrregularCycleComReqDto reqDto){


      OmsCycle omsCycle_2 =null;
//virtualUsage 3-4-01查不规则周期类型  41758
      OmsCycleType omsCycleType = null;
    QueryCycleTypeDetailReq queryCycleTypeDetailReq=new QueryCycleTypeDetailReq();
  queryCycleTypeDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:944170_1_41758
if(reqDto!=null){
      queryCycleTypeDetailReq.setCycleTypeCode(reqDto.getFatherCycleType());//SimpleFieldAssign//sourceId:944171_1_41758
    }

    /*3-4-01查不规则周期类型[1881]   */
    Assert.isNull(queryCycleTypeDetailReq.getCycleTypeCode(),"D3新增不规则周期(公共)-3-4-01查不规则周期类型-周期类型标识不能为空",false);
Assert.isNull(queryCycleTypeDetailReq.getSubjectLifeCycle(),"D3新增不规则周期(公共)-3-4-01查不规则周期类型-主体生命周期不能为空",false);
      omsCycleType = mOmsCycleTypeService.queryCycleTypeDetail(queryCycleTypeDetailReq)/*vcase invoke 本地 method 方法调用;*/;



if((omsCycleType != null )) {
        //if(3-4-01查不规则周期类型.出参 值不等于空 )  41759

GenerateOrderNumberComRespDto generateOrderNumberComRespDto = null;
    GenerateOrderNumberComReqDto generateOrderNumberComReqDto=new GenerateOrderNumberComReqDto();
  if(reqDto!=null){
      generateOrderNumberComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:944178_1_41760
generateOrderNumberComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:944179_1_41760
    }

    /*D3生成不规则周期排序[3545]   */
    Assert.isNull(generateOrderNumberComReqDto.getCycleStartTime(),"D3新增不规则周期(公共)-D3生成不规则周期排序-周期开始时间不能为空",false);
Assert.isNull(generateOrderNumberComReqDto.getCycleEndTime(),"D3新增不规则周期(公共)-D3生成不规则周期排序-周期结束时间不能为空",false);
      generateOrderNumberComRespDto = generateOrderNumberCom(generateOrderNumberComReqDto)/*vcase invoke 同服务,同domain*/;



GenerateTimeCycleEtcSemanticInstanceComRespDto generateTimeCycleEtcSemanticInstanceComRespDto = null;
    GenerateTimeCycleEtcSemanticInstanceComReqDto generateTimeCycleEtcSemanticInstanceComReqDto=new GenerateTimeCycleEtcSemanticInstanceComReqDto();
  generateTimeCycleEtcSemanticInstanceComReqDto.setTemplateSemanticEngineCode("GENERATE_IRREGULAR_CYCLE_NAME");//CUSTOM_CONVENTION//sourceId:944183_1_41762
if(reqDto!=null){
      generateTimeCycleEtcSemanticInstanceComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:944189_1_41762
generateTimeCycleEtcSemanticInstanceComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:944190_1_41762
    }

    /*D2生成不规则周期名称[5030]   */
    Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getTemplateSemanticEngineCode(),"D3新增不规则周期(公共)-D2生成不规则周期名称-模板引擎标识不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getCycleStartTime(),"D3新增不规则周期(公共)-D2生成不规则周期名称-周期开始时间不能为空",false);
Assert.isNull(generateTimeCycleEtcSemanticInstanceComReqDto.getCycleEndTime(),"D3新增不规则周期(公共)-D2生成不规则周期名称-周期结束时间不能为空",false);
      generateTimeCycleEtcSemanticInstanceComRespDto = fwCompTemplateEngineClient.generateTimeCycleEtcSemanticInstanceCom(generateTimeCycleEtcSemanticInstanceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



String string = null;
    if(generateTimeCycleEtcSemanticInstanceComRespDto !=null&&omsCycleType !=null&&generateOrderNumberComRespDto !=null){
          OmsCycle omsCycle=new OmsCycle();
  omsCycle.setPlatformData("TRUE");//sourceId:944214_1_41763
omsCycle.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:944216_1_41763
omsCycle.setIsArchive("FALSE");//sourceId:944217_1_41763
if(generateTimeCycleEtcSemanticInstanceComRespDto!=null){
      omsCycle.setCycleStandardName(generateTimeCycleEtcSemanticInstanceComRespDto.getObjectName());//SimpleFieldAssign//sourceId:944204_1_41763
    }
if(reqDto!=null){
      omsCycle.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:944205_1_41763
omsCycle.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:944206_1_41763
    }
if(omsCycleType!=null){
      omsCycle.setCycleTypeCode(omsCycleType.getCycleTypeCode());//SimpleFieldAssign//sourceId:944207_1_41763
omsCycle.setCycleTypeName(omsCycleType.getCycleTypeName());//SimpleFieldAssign//sourceId:944208_1_41763
omsCycle.setCycleSystemCode(omsCycleType.getCycleSystemCode());//SimpleFieldAssign//sourceId:944210_1_41763
omsCycle.setCycleTypeStandard(omsCycleType.getCycleTypeStandard());//SimpleFieldAssign//sourceId:944212_1_41763
omsCycle.setOperationInductionId(omsCycleType.getOperationInductionId());//SimpleFieldAssign//sourceId:944218_1_41763
omsCycle.setCreateInductionId(omsCycleType.getOperationInductionId());//SimpleFieldAssign//sourceId:944219_1_41763
omsCycle.setReleaseInductionId(omsCycleType.getOperationInductionId());//SimpleFieldAssign//sourceId:944223_1_41763
omsCycle.setSpaceId(omsCycleType.getSpaceId());//SimpleFieldAssign//sourceId:944220_1_41763
omsCycle.setAppId(omsCycleType.getAppId());//SimpleFieldAssign//sourceId:944221_1_41763
    }
if(generateOrderNumberComRespDto!=null){
      omsCycle.setOrderNumber(generateOrderNumberComRespDto.getOrderNumber());//SimpleFieldAssign//sourceId:944215_1_41763
    }

    /*3-4-04新增不规则周期[5071]   */
    Assert.isNull(omsCycle.getCycleStandardName(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-周期名称不能为空",false);
Assert.isNull(omsCycle.getCycleStartTime(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-周期开始时间不能为空",false);
Assert.isNull(omsCycle.getCycleEndTime(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-周期结束时间不能为空",false);
Assert.isNull(omsCycle.getCycleTypeCode(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-周期类型标识不能为空",false);
Assert.isNull(omsCycle.getCycleTypeName(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-周期类型名称不能为空",false);
Assert.isNull(omsCycle.getCycleSystemCode(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-周期体系类型标识不能为空",false);
Assert.isNull(omsCycle.getCycleTypeStandard(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-冗余周期类型标准化不能为空",false);
Assert.isNull(omsCycle.getPlatformData(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-是否是平台不能为空",false);
Assert.isNull(omsCycle.getOrderNumber(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-排序不能为空",false);
Assert.isNull(omsCycle.getSubjectLifeCycle(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-主体生命周期不能为空",false);
Assert.isNull(omsCycle.getIsArchive(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-是否存档不能为空",false);
Assert.isNull(omsCycle.getOperationInductionId(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-操作人就职记录ID不能为空",false);
Assert.isNull(omsCycle.getCreateInductionId(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-创建人就职记录ID不能为空",false);
Assert.isNull(omsCycle.getReleaseInductionId(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-发布人就职记录ID不能为空",false);
Assert.isNull(omsCycle.getSpaceId(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-创建于空间ID不能为空",false);
Assert.isNull(omsCycle.getAppId(),"D3新增不规则周期(公共)-3-4-04新增不规则周期-创建于联盟应用ID不能为空",false);
      string = mOmsCycleService.addSyntheticalCycle(omsCycle)/*vcase invoke 本地 method 方法调用;*/;



           }
OmsCycle omsCycle_1 = null;
    if(string !=null){
          QueryCycleDetailReq queryCycleDetailReq=new QueryCycleDetailReq();
  if(string!=null){
      queryCycleDetailReq.setCycleId(string);//SimpleFieldAssign//sourceId:944224_1_41766
    }

    /*3-4-04查询周期详情[2004]   */
    Assert.isNull(queryCycleDetailReq.getCycleId(),"D3新增不规则周期(公共)-3-4-04查询周期详情-周期ID不能为空",false);
      omsCycle_1 = mOmsCycleService.queryCycleDetail(queryCycleDetailReq)/*vcase invoke 本地 method 方法调用;*/;


      omsCycle_2 = omsCycle_1;
           }
      }
else if((omsCycleType == null )){
       //elseif(3-4-01查不规则周期类型.出参 值等于空 )  41764

//异常结束 41765
      throw new BizException("220100231","对不起~周期数据错误，请联系系统管理员~",false);
    }
AddIrregularCycleComRespDto retData = new AddIrregularCycleComRespDto();
  if(omsCycle_2!=null){
      retData.setCycleId(omsCycle_2.getCycleId());//SimpleFieldAssign//sourceId:944280_1
retData.setCycleStandardName(omsCycle_2.getCycleStandardName());//SimpleFieldAssign//sourceId:944281_1
retData.setCycleStartTime(omsCycle_2.getCycleStartTime());//SimpleFieldAssign//sourceId:944282_1
retData.setCycleEndTime(omsCycle_2.getCycleEndTime());//SimpleFieldAssign//sourceId:944283_1
retData.setCycleTypeCode(omsCycle_2.getCycleTypeCode());//SimpleFieldAssign//sourceId:944284_1
retData.setCycleTypeInstanceCode(omsCycle_2.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:944285_1
retData.setCycleNumberShortName(omsCycle_2.getCycleNumberShortName());//SimpleFieldAssign//sourceId:944286_1
retData.setOrderNumber(omsCycle_2.getOrderNumber());//SimpleFieldAssign//sourceId:944287_1
    }




return retData;
  }
/**
   * D3获取周期类型(公共)[6706]
   * gen by moon at 9/1/2023, 1:12:15 AM
   */
  @Trace(operationName = "D3获取周期类型(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ObtainCycleTypeComRespDto obtainCycleTypeCom(ObtainCycleTypeComReqDto reqDto){


      ObtainReceiveFieldRespDto receptionServiceRes_3 =null;
//virtualUsage M3-用于约定周期类型标准化的值  41789
      //ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes = null;
    ObtainReceiveFieldReqDto receptionServiceReq=new ObtainReceiveFieldReqDto();
  receptionServiceReq.setCustomField("CUSTOM_STANDARD");//CUSTOM_CONVENTION//sourceId:1118295_1_41789
receptionServiceReq.setCustomField1("IRREGULAR");//CUSTOM_CONVENTION//sourceId:1118298_1_41789

    /*M3-用于约定周期类型标准化的值[2451]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCustomField(),"D3获取周期类型(公共)-M3-用于约定周期类型标准化的值-自定义字段不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField1(),"D3获取周期类型(公共)-M3-用于约定周期类型标准化的值-自定义字段1不能为空",false);
      receptionServiceRes = nbCycleType.obtainReceiveField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getCycleTypeCode() !=null && reqDto.getCycleTypeCode().equals("CUSTOM_WORK_CYCLE")||reqDto!= null&&  reqDto.getCycleTypeCode() !=null && reqDto.getCycleTypeCode().equals("CUSTOM_HOLIDAYS"))) {
        //if((D3分析周期类型.周期类型标识 等于 自定义工作周期 or D3分析周期类型.周期类型标识 等于 自定义节假周期))  41785

//ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes_2 = null;
    ObtainReceiveFieldReqDto receptionServiceReq_1=new ObtainReceiveFieldReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_1.setCycleTypeStandard(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:946204_1_41790
    }

    /*M3-用于接收周期类型标准化约定的值[2451]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getCycleTypeStandard(),"D3获取周期类型(公共)-M3-用于接收周期类型标准化约定的值-周期类型标准化不能为空",false);
      receptionServiceRes_2 = nbCycleType.obtainReceiveField(receptionServiceReq_1);


      receptionServiceRes_3 = receptionServiceRes_2;
      }
else{
       //else  41787

//ModelCode: receptionService
        ObtainReceiveFieldRespDto receptionServiceRes_4 = null;
    ObtainReceiveFieldReqDto receptionServiceReq_2=new ObtainReceiveFieldReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_2.setCycleTypeStandard(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:946204_1_41791
    }

    /*M3-用于接收周期类型标准化约定的值[2451]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getCycleTypeStandard(),"D3获取周期类型(公共)-M3-用于接收周期类型标准化约定的值-周期类型标准化不能为空",false);
      receptionServiceRes_4 = nbCycleType.obtainReceiveField(receptionServiceReq_2);


      receptionServiceRes_3 = receptionServiceRes_4;
    }
ObtainCycleTypeComRespDto retData = new ObtainCycleTypeComRespDto();
  if(receptionServiceRes_3!=null){
      retData.setCycleTypeStandard(receptionServiceRes_3.getCycleTypeStandard());//SimpleFieldAssign//sourceId:946207_1
    }




return retData;
  }
/**
   * D3批量查询周期(公共)[8854]
   * gen by moon at 3/29/2024, 12:20:27 AM
   */
  @Trace(operationName = "D3批量查询周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public BatchQueryCycleComRespDto batchQueryCycleCom(BatchQueryCycleComReqDto reqDto){


      List<OmsCycle> listOmsCycle_1 =new ArrayList<>();
//步骤0: 3-4-04批量查周期列表 - batchQueryCycle
     List<OmsCycle> listOmsCycle =new ArrayList<>();
    BatchQueryCycleReq batchQueryCycleReq=new BatchQueryCycleReq();
  batchQueryCycleReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1661811_1
if(reqDto!=null){
      batchQueryCycleReq.setCycleList(reqDto.getCycleList());//list-field-assign//sourceId:1661809_1
    }

    /*3-4-04批量查周期列表[2249]   */
    Assert.isNull(batchQueryCycleReq.getSubjectLifeCycle(),"D3批量查询周期(公共)-3-4-04批量查周期列表-主体生命周期不能为空",false);
      listOmsCycle = mOmsCycleService.batchQueryCycle(batchQueryCycleReq)/*vcase invoke 本地 method 方法调用;*/;


      listOmsCycle_1 = listOmsCycle;

BatchQueryCycleComRespDto retData = new BatchQueryCycleComRespDto();
  retData.setCycleList(listOmsCycle_1.stream().map(item -> BeanUtil.toBean(item, CycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1661814_1




return retData;
  }
/**
   * D3分析租户周期(公共)[8903]
   * gen by moon at 3/29/2024, 8:52:21 PM
   */
  @Trace(operationName = "D3分析租户周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public AnalysisTenementCycleComRespDto analysisTenementCycleCom(AnalysisTenementCycleComReqDto reqDto){


      ImplementEightReceivingFieldRespDto receptionServiceRes_3 =null;
//virtualUsage M3约定是与否  65415
      //ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes = null;
    ImplementEightReceivingFieldReqDto receptionServiceReq=new ImplementEightReceivingFieldReqDto();
  receptionServiceReq.setCustomField1("TRUE");//CUSTOM_CONVENTION//sourceId:1664615_1_65415
receptionServiceReq.setCustomField2("FALSE");//CUSTOM_CONVENTION//sourceId:1664616_1_65415

    /*M3约定是与否[8691]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCustomField1(),"D3分析租户周期(公共)-M3约定是与否-自定义字段1不能为空",false);
Assert.isNull(receptionServiceReq.getCustomField2(),"D3分析租户周期(公共)-M3约定是与否-自定义字段2不能为空",false);
      receptionServiceRes = nbCycleType.implementEightReceivingField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getIsTenementCycle() !=null && reqDto.getIsTenementCycle().equals("TRUE"))) {
        //if(D3分析租户周期(公共).是否租户周期 等于 是)  65414

//ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes_2 = null;
    ImplementEightReceivingFieldReqDto receptionServiceReq_1=new ImplementEightReceivingFieldReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_1.setPlatformData(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1664657_1_65417
    }
if(reqDto!=null){
      receptionServiceReq_1.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1664660_1_65417
    }

    /*M3接收是否平台与空间ID出参[8691]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getPlatformData(),"D3分析租户周期(公共)-M3接收是否平台与空间ID出参-是否是平台不能为空",false);
      receptionServiceRes_2 = nbCycleType.implementEightReceivingField(receptionServiceReq_1);


      receptionServiceRes_3 = receptionServiceRes_2;
      }
else if((reqDto!= null&&  reqDto.getIsTenementCycle() !=null && reqDto.getIsTenementCycle().equals("FALSE"))){
       //elseif(D3分析租户周期(公共).是否租户周期 等于 否)  65416

//ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes_4 = null;
    ImplementEightReceivingFieldReqDto receptionServiceReq_2=new ImplementEightReceivingFieldReqDto();
  if(receptionServiceRes!=null){
      receptionServiceReq_2.setPlatformData(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1664657_1_65419
    }

    /*M3接收是否平台与空间ID出参[8691]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getPlatformData(),"D3分析租户周期(公共)-M3接收是否平台与空间ID出参-是否是平台不能为空",false);
      receptionServiceRes_4 = nbCycleType.implementEightReceivingField(receptionServiceReq_2);


      receptionServiceRes_3 = receptionServiceRes_4;
    }
AnalysisTenementCycleComRespDto retData = new AnalysisTenementCycleComRespDto();
  if(receptionServiceRes_3!=null){
      retData.setPlatformData(receptionServiceRes_3.getPlatformData());//SimpleFieldAssign//sourceId:1664665_1
retData.setSpaceId(receptionServiceRes_3.getSpaceId());//SimpleFieldAssign//sourceId:1664666_1
    }




return retData;
  }
    //
}
